Skip to content

Commit

Permalink
feat: renamed entry PHP file (#2492)
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Sep 29, 2023
1 parent 9a36e18 commit 187b153
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
10 changes: 6 additions & 4 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/<ACTION>
rewrite api/v2.0/version /api/index.php last;
Expand Down
12 changes: 6 additions & 6 deletions phpmyfaq/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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/<ACTION>
RewriteRule api/v2.0/version api/index.php
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion phpmyfaq/src/admin-routes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* phpMyFAQ admin routes
* phpMyFAQ admin API routes
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
Expand Down

0 comments on commit 187b153

Please sign in to comment.