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 6672409..c1d3e6d 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 111445f..0396ea8 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]