misc_pterodactyl-panel/routes/base.php
2021-01-13 10:03:27 -07:00

24 lines
778 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
/*
|--------------------------------------------------------------------------
| Base Routes
|--------------------------------------------------------------------------
|
| Endpoint: /
|
*/
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)).+');