mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	feature: staff permission
This commit is contained in:
		
							
								
								
									
										20
									
								
								app/Http/Routes/StaffRoute.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								app/Http/Routes/StaffRoute.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| <?php | ||||
| namespace App\Http\Routes; | ||||
|  | ||||
| use Illuminate\Contracts\Routing\Registrar; | ||||
|  | ||||
| class StaffRoute | ||||
| { | ||||
|     public function map(Registrar $router) | ||||
|     { | ||||
|         $router->group([ | ||||
|             'prefix' => 'staff', | ||||
|             'middleware' => 'staff' | ||||
|         ], function ($router) { | ||||
|             // Ticket | ||||
|             $router->get ('/ticket/fetch', 'Staff\\TicketController@fetch'); | ||||
|             $router->post('/ticket/reply', 'Staff\\TicketController@reply'); | ||||
|             $router->post('/ticket/close', 'Staff\\TicketController@close'); | ||||
|         }); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user