Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | public function addRoutes(Router $router): void |
||
41 | { |
||
42 | $router->group('/user', function (Router $router) { |
||
43 | $router->add('/login', AuthAction::class, ['GET', 'POST'], 'user_login'); |
||
44 | $router->get('/logout', LogoutAction::class, 'user_logout'); |
||
45 | }); |
||
46 | |||
47 | $router->resource('/permission', PermissionAction::class, 'permission'); |
||
48 | $router->resource('/role', RoleAction::class, 'role'); |
||
49 | } |
||
51 |