Skip to content

Commit

Permalink
Explictly added named routes for all authentication routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sammyskills committed Jan 6, 2023
1 parent 44bbf2c commit dace47b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Config/AuthRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class AuthRoutes extends BaseConfig
'get',
'register',
'RegisterController::registerView',
'register', // Route name
],
[
'post',
Expand All @@ -26,6 +27,7 @@ class AuthRoutes extends BaseConfig
'get',
'login',
'LoginController::loginView',
'login', // Route name
],
[
'post',
Expand Down Expand Up @@ -57,26 +59,27 @@ class AuthRoutes extends BaseConfig
'get',
'logout',
'LoginController::logoutAction',
'logout', // Route name
],
],
'auth-actions' => [
[
'get',
'auth/a/show',
'ActionController::show',
'auth-action-show',
'auth-action-show', // Route name
],
[
'post',
'auth/a/handle',
'ActionController::handle',
'auth-action-handle',
'auth-action-handle', // Route name
],
[
'post',
'auth/a/verify',
'ActionController::verify',
'auth-action-verify',
'auth-action-verify', // Route name
],
],
];
Expand Down

0 comments on commit dace47b

Please sign in to comment.