Files
speedBB/routes/web.php
tracer 0b4e0df305
All checks were successful
CI/CD Pipeline / deploy (push) Successful in 26s
CI/CD Pipeline / promote_stable (push) Successful in 2s
Add ping endpoint, update-refresh prompt, and dark-mode polish
2026-02-24 18:48:54 +01:00

41 lines
1.1 KiB
PHP

<?php
use App\Http\Controllers\InstallerController;
use App\Http\Controllers\PingController;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken;
use Illuminate\Support\Facades\Route;
Route::get('/install', [InstallerController::class, 'show']);
Route::post('/install', [InstallerController::class, 'store'])
->withoutMiddleware([VerifyCsrfToken::class]);
Route::get('/', function () {
if (!file_exists(base_path('.env'))) {
return redirect('/install');
}
return view('app');
});
Route::get('/login', function () {
if (!file_exists(base_path('.env'))) {
return redirect('/install');
}
return view('app');
})->name('login');
Route::get('/reset-password', function () {
if (!file_exists(base_path('.env'))) {
return redirect('/install');
}
return view('app');
})->name('password.reset');
Route::get('/ping', PingController::class);
Route::get('/{any}', function () {
if (!file_exists(base_path('.env'))) {
return redirect('/install');
}
return view('app');
})->where('any', '^(?!api).*$');