mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
17 lines
654 B
PHP
17 lines
654 B
PHP
<?php
|
|
|
|
use Pterodactyl\Http\Controllers\Base;
|
|
use Pterodactyl\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}/{namespace}.json', Base\LocaleController::class)
|
|
->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class])
|
|
->where('namespace', '.*');
|
|
|
|
Route::get('/{react}', [Base\IndexController::class, 'index'])
|
|
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|