diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-06-13 13:08:01 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 9c75f877935fa6adec951a4d8d32b328aaab314f (patch) | |
tree | 1cdd09ddfc00c6cebb92bb2b90381a06fd31246d /application/front/controller/admin/PasswordController.php | |
parent | 818b3193ffabec57501e3bdfa997206e3c0671ef (diff) | |
download | Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.tar.gz Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.tar.zst Shaarli-9c75f877935fa6adec951a4d8d32b328aaab314f.zip |
Use multi-level routes for existing controllers instead of 1 level everywhere
Also prefix most admin routes with /admin/
Diffstat (limited to 'application/front/controller/admin/PasswordController.php')
-rw-r--r-- | application/front/controller/admin/PasswordController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/front/controller/admin/PasswordController.php b/application/front/controller/admin/PasswordController.php index 6e8f0bcb..bcce01a6 100644 --- a/application/front/controller/admin/PasswordController.php +++ b/application/front/controller/admin/PasswordController.php | |||
@@ -29,7 +29,7 @@ class PasswordController extends ShaarliAdminController | |||
29 | } | 29 | } |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * GET /password - Displays the change password template | 32 | * GET /admin/password - Displays the change password template |
33 | */ | 33 | */ |
34 | public function index(Request $request, Response $response): Response | 34 | public function index(Request $request, Response $response): Response |
35 | { | 35 | { |
@@ -37,7 +37,7 @@ class PasswordController extends ShaarliAdminController | |||
37 | } | 37 | } |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * POST /password - Change admin password - existing and new passwords need to be provided. | 40 | * POST /admin/password - Change admin password - existing and new passwords need to be provided. |
41 | */ | 41 | */ |
42 | public function change(Request $request, Response $response): Response | 42 | public function change(Request $request, Response $response): Response |
43 | { | 43 | { |