learning-center/app/Auth/routes.php
2024-09-08 13:48:26 +03:00

25 lines
548 B
PHP

<?php
declare(strict_types=1);
return [
'auth:login' => [
'pattern' => '/login',
'paths' => [
'namespace' => 'App\Auth\Controllers',
'controller' => 'login',
'action' => 'exec',
],
'httpMethods' => ['GET', 'POST'],
],
'auth:logout' => [
'pattern' => '/logout',
'paths' => [
'namespace' => 'App\Auth\Controllers',
'controller' => 'logout',
'action' => 'exec',
],
'httpMethods' => ['GET'],
],
];