learning-center/app/Auth/routes.php

25 lines
548 B
PHP
Raw Normal View History

2024-09-08 13:48:26 +03:00
<?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'],
],
];