2017-04-02 02:01:10 +01:00
|
|
|
<?php
|
2018-06-21 07:05:35 +01:00
|
|
|
|
2022-12-01 18:49:54 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2022-05-14 20:51:05 +01:00
|
|
|
use Pterodactyl\Http\Controllers\Base;
|
2020-12-06 21:56:14 +00:00
|
|
|
use Pterodactyl\Http\Middleware\RequireTwoFactorAuthentication;
|
|
|
|
|
2022-05-14 20:51:05 +01:00
|
|
|
Route::get('/', [Base\IndexController::class, 'index'])->name('index')->fallback();
|
|
|
|
Route::get('/account', [Base\IndexController::class, 'index'])
|
2020-12-06 21:56:14 +00:00
|
|
|
->withoutMiddleware(RequireTwoFactorAuthentication::class)
|
|
|
|
->name('account');
|
2017-05-05 21:27:36 +01:00
|
|
|
|
2022-06-11 19:04:09 +01:00
|
|
|
Route::get('/locales/locale.json', Base\LocaleController::class)
|
2022-05-14 20:51:05 +01:00
|
|
|
->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class])
|
2019-11-16 20:46:19 +00:00
|
|
|
->where('namespace', '.*');
|
|
|
|
|
2022-05-14 20:51:05 +01:00
|
|
|
Route::get('/{react}', [Base\IndexController::class, 'index'])
|
2019-06-10 03:26:20 +01:00
|
|
|
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|