Skip to content

Commit a20ad6b

Browse files
committed
Explictly added named routes for all authentication routes.
1 parent 3fede09 commit a20ad6b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Config/AuthRoutes.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class AuthRoutes extends BaseConfig
1414
'get',
1515
'register',
1616
'RegisterController::registerView',
17+
'register', // Route name
1718
],
1819
[
1920
'post',
@@ -26,6 +27,7 @@ class AuthRoutes extends BaseConfig
2627
'get',
2728
'login',
2829
'LoginController::loginView',
30+
'login', // Route name
2931
],
3032
[
3133
'post',
@@ -57,26 +59,27 @@ class AuthRoutes extends BaseConfig
5759
'get',
5860
'logout',
5961
'LoginController::logoutAction',
62+
'logout', // Route name
6063
],
6164
],
6265
'auth-actions' => [
6366
[
6467
'get',
6568
'auth/a/show',
6669
'ActionController::show',
67-
'auth-action-show',
70+
'auth-action-show', // Route name
6871
],
6972
[
7073
'post',
7174
'auth/a/handle',
7275
'ActionController::handle',
73-
'auth-action-handle',
76+
'auth-action-handle', // Route name
7477
],
7578
[
7679
'post',
7780
'auth/a/verify',
7881
'ActionController::verify',
79-
'auth-action-verify',
82+
'auth-action-verify', // Route name
8083
],
8184
],
8285
];

0 commit comments

Comments
 (0)