<?php

declare(strict_types=1);

use App\Core\Middleware\AuthMiddleware;
use App\Core\Middleware\CsrfMiddleware;
use App\Core\Middleware\GuestMiddleware;
use App\Controllers\AuthController;

$authController = new AuthController();

$router->get('/login', [$authController, 'login'], [new GuestMiddleware()]);
$router->post('/login', [$authController, 'login'], [new GuestMiddleware(), new CsrfMiddleware()]);
$router->get('/logout', [$authController, 'logout'], [new AuthMiddleware()]);
