Files
SpiceManagementSystem/routes/web.php
T
Malek TellissiandClaude Sonnet 4.6 c3a3cabc2c
Deploy / deploy (push) Successful in 16s
Redirect /dashboard/login directly to Nextcloud OAuth via web route
Overriding mount() conflicts with parent void return type; intercepting
the URL in routes/web.php (registered before Filament) is the clean fix.

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

14 lines
446 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('/oauth/redirect', [OAuthController::class, 'redirect'])->name('auth.nextcloud');
Route::get('/auth/nextcloud/callback', [OAuthController::class, 'callback'])->name('auth.nextcloud.callback');