Handle GET /dashboard/logout to prevent 500 on direct URL access
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:
Malek TellissiandClaude Sonnet 4.6 committed 2026-09-13 02:31:49 +02:00
1 parent c3a3cabc2c
commit df637d1b4b
1 file changed
+1
+1
View File
@@ -8,6 +8,7 @@ Route::get('/', function () {
}); });
Route::get('/dashboard/login', fn () => redirect()->route('auth.nextcloud')); 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('/oauth/redirect', [OAuthController::class, 'redirect'])->name('auth.nextcloud');
Route::get('/auth/nextcloud/callback', [OAuthController::class, 'callback'])->name('auth.nextcloud.callback'); Route::get('/auth/nextcloud/callback', [OAuthController::class, 'callback'])->name('auth.nextcloud.callback');