2023-07-24 20:55:26 -04:00
|
|
|
<?php
|
|
|
|
use Incoviba\Controller\Login;
|
|
|
|
|
|
|
|
$app->group('/login', function($app) {
|
|
|
|
$app->post('[/]', [Login::class, 'login']);
|
|
|
|
$app->get('[/]', [Login::class, 'form']);
|
2023-11-25 00:55:31 -03:00
|
|
|
})->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
|
|
|
|
$app->get('/logout', [Login::class, 'logout'])->add($app->getContainer()->get(Incoviba\Middleware\Authentication::class));
|