feat: implementado middleware de autenticacao jwt conforme especificacao

This commit is contained in:
2026-05-03 22:13:41 -05:00
parent a23785b216
commit d7ed3d7fa5
5 changed files with 149 additions and 7 deletions

View File

@@ -10,8 +10,10 @@ return Application::configure(basePath: dirname(__DIR__))
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
//
->withMiddleware(function (Middleware $middleware) {
$middleware->alias([
'jwt.auth' => \App\Http\Middleware\JwtAuthMiddleware::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
//