mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -20,7 +20,7 @@ Route::prefix('v1') | ||||
|             ->middleware('admin') | ||||
|             ->group(function () { | ||||
|             	Route::any('/{class}/{action}', function($class, $action) { | ||||
| 				    $ctrl = \App::make("\\App\\Http\\Controllers\\User\\" . ucfirst($class) . "Controller"); | ||||
| 				    $ctrl = \App::make("\\App\\Http\\Controllers\\Admin\\" . ucfirst($class) . "Controller"); | ||||
| 				    try { | ||||
| 				    	return \App::call([$ctrl, $action]); | ||||
| 				    } catch (\Exception $e) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user