Re-register HTTP middleware

This commit is contained in:
Shift
2024-03-18 16:13:27 +00:00
parent 8cd1467840
commit 31d13cb013

View File

@@ -14,7 +14,10 @@ return Application::configure(basePath: dirname(__DIR__))
health: '/up',
)
->withMiddleware(function (Middleware $middleware) {
//
$middleware->redirectGuestsTo(fn () => route('login'));
$middleware->redirectUsersTo(RouteServiceProvider::HOME);
$middleware->throttleApi();
})
->withExceptions(function (Exceptions $exceptions) {
//