mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 14:06:53 +01:00 
			
		
		
		
	 5a3c606627
			
		
	
	
		5a3c606627
		
			
		
	
	
	
	
		
			
			* add socialite backend * fix redirect url * small cleanup * fix "oauth" type * changes from review
		
			
				
	
	
		
			21 lines
		
	
	
		
			880 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			880 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('/account/oauth/link', [Base\OAuthController::class, 'link'])->name('account.oauth.link');
 | |
| Route::get('/account/oauth/unlink', [Base\OAuthController::class, 'unlink'])->name('account.oauth.unlink');
 | |
| 
 | |
| 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)).+');
 |