mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update
This commit is contained in:
parent
602e12d745
commit
deb7e4ed04
@ -20,7 +20,7 @@ Route::prefix('v1')
|
|||||||
->middleware('admin')
|
->middleware('admin')
|
||||||
->group(function () {
|
->group(function () {
|
||||||
Route::any('/{class}/{action}', function($class, $action) {
|
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 {
|
try {
|
||||||
return \App::call([$ctrl, $action]);
|
return \App::call([$ctrl, $action]);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user