<?php
    use AxiumPHP\Core\Router;
    use Zampet\Module\Auth\v0\Controllers\AuthController;
    use Zampet\Module\Auth\v0\Middlewares\AuthMiddleware;

    Router::group(
        prefix: '/auth', 
        callback: function () {
            // Criar novo usuário
            Router::POST(
                uri: '/register',
                handler: [AuthController::class, 'register']
            );

            // Login no Sistema
            Router::POST(
                uri: '/login',
                handler: [AuthController::class, 'login']
            );

            // Logout do Sistema
            Router::POST(
                uri: '/logout',
                handler: [AuthController::class, 'logout'],
                middlewares: [
                    AuthMiddleware::class.'::handle'
                ]
            );
        } 
    );