mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 12:14:45 +02:00
Swap over routes
This commit is contained in:
parent
373ede8548
commit
2beb12c04f
@ -34,7 +34,7 @@ class AdminPanelProvider extends PanelProvider
|
||||
return $panel
|
||||
->default()
|
||||
->id('admin')
|
||||
->path('new-admin')
|
||||
->path('admin')
|
||||
->login()
|
||||
->brandName('Pelican')
|
||||
->homeUrl('/')
|
||||
|
@ -44,7 +44,7 @@ class RouteServiceProvider extends ServiceProvider
|
||||
->group(base_path('routes/base.php'));
|
||||
|
||||
Route::middleware(['auth.session', RequireTwoFactorAuthentication::class, AdminAuthenticate::class])
|
||||
->prefix('/admin')
|
||||
->prefix('/legacy')
|
||||
->group(base_path('routes/admin.php'));
|
||||
|
||||
Route::middleware('guest')->prefix('/auth')->group(base_path('routes/auth.php'));
|
||||
|
@ -14,4 +14,4 @@ Route::get('/locales/locale.json', Base\LocaleController::class)
|
||||
->where('namespace', '.*');
|
||||
|
||||
Route::get('/{react}', [Base\IndexController::class, 'index'])
|
||||
->where('react', '^(?!(\/)?(api|auth|admin|daemon)).+');
|
||||
->where('react', '^(?!(\/)?(api|auth|admin|daemon|legacy)).+');
|
||||
|
Loading…
x
Reference in New Issue
Block a user