mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34:44 +02:00
chore: clean base routes
This commit is contained in:
parent
ff5812e87b
commit
cdd46de274
@ -2,20 +2,7 @@
|
|||||||
|
|
||||||
use App\Livewire\Installer\PanelInstaller;
|
use App\Livewire\Installer\PanelInstaller;
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
use App\Http\Controllers\Base;
|
|
||||||
use App\Http\Middleware\RequireTwoFactorAuthentication;
|
use App\Http\Middleware\RequireTwoFactorAuthentication;
|
||||||
|
|
||||||
Route::get('/', [Base\IndexController::class, 'index'])->name('index')->fallback();
|
|
||||||
Route::get('/account', [Base\IndexController::class, 'index'])
|
|
||||||
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
|
||||||
->name('account');
|
|
||||||
|
|
||||||
Route::get('/locales/locale.json', Base\LocaleController::class)
|
|
||||||
->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class])
|
|
||||||
->where('namespace', '.*');
|
|
||||||
|
|
||||||
Route::get('installer', PanelInstaller::class)->name('installer')
|
Route::get('installer', PanelInstaller::class)->name('installer')
|
||||||
->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class]);
|
->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class]);
|
||||||
|
|
||||||
Route::get('/{react}', [Base\IndexController::class, 'index'])
|
|
||||||
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user