mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 12:26:53 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			669 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			669 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
use Illuminate\Support\Facades\Route;
 | 
						|
use App\Http\Controllers\Base;
 | 
						|
use App\Http\Middleware\RequireTwoFactorAuthentication;
 | 
						|
 | 
						|
Route::get('/', [Base\IndexController::class, 'index'])->name('index')->fallback();
 | 
						|
Route::get('/account', [Base\IndexController::class, 'index'])
 | 
						|
    ->withoutMiddleware(RequireTwoFactorAuthentication::class)
 | 
						|
    ->name('account');
 | 
						|
 | 
						|
Route::get('/locales/locale.json', Base\LocaleController::class)
 | 
						|
    ->withoutMiddleware(['auth', RequireTwoFactorAuthentication::class])
 | 
						|
    ->where('namespace', '.*');
 | 
						|
 | 
						|
Route::get('/{react}', [Base\IndexController::class, 'index'])
 | 
						|
    ->where('react', '^(?!(\/)?(api|auth|admin|daemon|legacy)).+');
 |