2017-04-01 21:01:10 -04:00
|
|
|
<?php
|
2018-06-20 23:05:35 -07:00
|
|
|
|
2020-12-28 10:42:34 -07:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2020-12-06 13:56:14 -08:00
|
|
|
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
|
|
|
|
2021-01-13 10:03:27 -07:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Base Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /
|
|
|
|
|
|
|
|
|
*/
|
2019-03-23 17:41:43 -07:00
|
|
|
Route::get('/', 'IndexController@index')->name('index')->fallback();
|
2020-12-06 13:56:14 -08:00
|
|
|
Route::get('/account', 'IndexController@index')
|
|
|
|
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
|
|
|
->name('account');
|
2017-05-05 16:27:36 -04:00
|
|
|
|
2019-11-16 12:46:19 -08:00
|
|
|
Route::get('/locales/{locale}/{namespace}.json', 'LocaleController')
|
2020-12-06 13:56:14 -08:00
|
|
|
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
2019-11-16 12:46:19 -08:00
|
|
|
->where('namespace', '.*');
|
|
|
|
|
2019-06-09 19:26:20 -07:00
|
|
|
Route::get('/{react}', 'IndexController@index')
|
|
|
|
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|