store main discover file in discover-data dir
authorChristian Weiske <cweiske@cweiske.de>
Fri, 22 Nov 2019 20:40:06 +0000 (21:40 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 22 Nov 2019 20:40:06 +0000 (21:40 +0100)
bin/import-game-data.php
www/.htaccess

index 66724090fe83792a0bbce20ec54df394c7b7cc48..c1d3e6da6db07d6c586be0f650b74a9c93fddc4d 100755 (executable)
@@ -80,7 +80,7 @@ foreach ($gameFiles as $gameFile) {
     }
 }
 
-writeJson('api/v1/discover.json', buildDiscover($games));
+writeJson('api/v1/discover-data/discover.json', buildDiscover($games));
 writeJson('api/v1/discover-data/home.json', buildDiscoverHome($games));
 
 
index 111445fe84cdc061a3612f7f644217bb1b711a00..0396ea87977ed645fca16d9ea90956b23fd6c65b 100644 (file)
@@ -7,8 +7,8 @@ RewriteRule ^api/v1/details /api/v1/details-data/%1.json?
 RewriteRule ^api/v1/apps/(.*)/download$ /api/v1/apps/$1-download.json? [END]
 RewriteRule ^api/v1/apps/(.*)$ /api/v1/apps/$1.json? [END]
 
-RewriteRule ^api/v1/discover/?$ /api/v1/discover.json [END]
+RewriteRule ^api/v1/discover/?$ /api/v1/discover-data/discover.json [END]
 RewriteRule ^api/v1/discover/(.+)$ /api/v1/discover-data/$1.json [END]
 
 #this one wants a 204 status code
-RewriteRule ^api/v1/status$ - [R=204,NC,L]
+RewriteRule ^api/v1/status$ - [R=204,L]