mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 17:42:33 +01:00
16 lines
550 B
PHP
16 lines
550 B
PHP
<?php
|
|
|
|
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
|
|
|
Route::get('/', 'IndexController@index')->name('index')->fallback();
|
|
Route::get('/account', 'IndexController@index')
|
|
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
|
->name('account');
|
|
|
|
Route::get('/locales/{locale}/{namespace}.json', 'LocaleController')
|
|
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
|
->where('namespace', '.*');
|
|
|
|
Route::get('/{react}', 'IndexController@index')
|
|
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|