This commit is contained in:
root 2020-01-29 16:10:56 +08:00
parent 602e12d745
commit deb7e4ed04

View File

@ -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) {