mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	split router
This commit is contained in:
		
							
								
								
									
										24
									
								
								app/Http/Routes/PassportRoute.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								app/Http/Routes/PassportRoute.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| <?php | ||||
| namespace App\Http\Routes; | ||||
|  | ||||
| use Illuminate\Contracts\Routing\Registrar; | ||||
|  | ||||
| class PassportRoute | ||||
| { | ||||
|     public function map(Registrar $router) | ||||
|     { | ||||
|         $router->group([ | ||||
|             'prefix' => 'passport' | ||||
|         ], function ($router) { | ||||
|             // Auth | ||||
|             $router->post('/auth/register', 'Passport\\AuthController@register'); | ||||
|             $router->post('/auth/login', 'Passport\\AuthController@login'); | ||||
|             $router->get('/auth/token2Login', 'Passport\\AuthController@token2Login'); | ||||
|             $router->get('/auth/check', 'Passport\\AuthController@check'); | ||||
|             $router->post('/auth/forget', 'Passport\\AuthController@index'); | ||||
|             // Comm | ||||
|             $router->get('/comm/config', 'Passport\\CommController@config'); | ||||
|             $router->post('/comm/sendEmailVerify', 'Passport\\CommController@sendEmailVerify'); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user