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