Files
SpiceManagementSystem/routes/web.php
T
Malek TellissiandClaude Sonnet 4.6 df637d1b4b
Deploy / deploy (push) Successful in 15s
Handle GET /dashboard/logout to prevent 500 on direct URL access
Filament logout only accepts POST; redirect GET requests to dashboard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-13 02:31:49 +02:00

15 lines
512 B
PHP

<?php
use App\Http\Controllers\OAuthController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return redirect('/dashboard', 301);
});
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');