Handle GET /dashboard/logout to prevent 500 on direct URL access
Deploy / deploy (push) Successful in 15s
Deploy / deploy (push) Successful in 15s
Filament logout only accepts POST; redirect GET requests to dashboard. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
c3a3cabc2c
commit
df637d1b4b
1 file changed
+1
@@ -8,6 +8,7 @@ Route::get('/', function () {
|
||||
});
|
||||
|
||||
Route::get('/dashboard/login', fn () => redirect()->route('auth.nextcloud'));
|
||||
Route::get('/dashboard/logout', fn () => redirect('/dashboard'));
|
||||
|
||||
Route::get('/oauth/redirect', [OAuthController::class, 'redirect'])->name('auth.nextcloud');
|
||||
Route::get('/auth/nextcloud/callback', [OAuthController::class, 'callback'])->name('auth.nextcloud.callback');
|
||||
Reference in new issue
Block a user