diff --git a/nginx.conf b/nginx.conf index 9b5a5ce65c..aea3cba255 100644 --- a/nginx.conf +++ b/nginx.conf @@ -128,14 +128,16 @@ server { rewrite user/request-removal /index.php?action=request-removal last; rewrite user/logout /index.php?action=logout last; - # Administration API - rewrite admin/api/updates /admin/api/updates.php last; - rewrite admin/api/update-check /admin/api/updates.php last; - # Private APIs rewrite api/autocomplete /api/index.php last; rewrite api/bookmark/([0-9]+) /api/index.php last; + # Administration API + rewrite admin/api/health-check /admin/api/index.php last; + rewrite admin/api/updates /admin/api/index.php last; + rewrite admin/api/update-check /admin/api/index.php last; + rewrite admin/api/download-package /admin/api/index.php last; + # REST API v2.0 # * http://[...]/api/v2.0/ rewrite api/v2.0/version /api/index.php last; diff --git a/phpmyfaq/.htaccess b/phpmyfaq/.htaccess index d487028e80..91dcb5a444 100644 --- a/phpmyfaq/.htaccess +++ b/phpmyfaq/.htaccess @@ -138,16 +138,16 @@ RewriteRule user/bookmarks index.php?action=bookmarks [L RewriteRule user/request-removal index.php?action=request-removal [L,QSA] RewriteRule user/logout index.php?action=logout [L,QSA] -# Administration API -RewriteRule admin/api/health-check admin/api/updates.php -RewriteRule admin/api/versions admin/api/updates.php -RewriteRule admin/api/update-check admin/api/updates.php -RewriteRule admin/api/download-package admin/api/updates.php - # Private APIs RewriteRule api/autocomplete api/index.php RewriteRule api/bookmark/([0-9]+) api/index.php +# Administration API +RewriteRule admin/api/health-check admin/api/index.php +RewriteRule admin/api/versions admin/api/index.php +RewriteRule admin/api/update-check admin/api/index.php +RewriteRule admin/api/download-package admin/api/index.php + # REST API v2.0 # * http://[...]/api/v2.0/ RewriteRule api/v2.0/version api/index.php diff --git a/phpmyfaq/admin/api/updates.php b/phpmyfaq/admin/api/index.php similarity index 100% rename from phpmyfaq/admin/api/updates.php rename to phpmyfaq/admin/api/index.php diff --git a/phpmyfaq/src/admin-routes.php b/phpmyfaq/src/admin-routes.php index a1bcc61e1e..354bc27d1e 100644 --- a/phpmyfaq/src/admin-routes.php +++ b/phpmyfaq/src/admin-routes.php @@ -1,7 +1,7 @@