新增路由
This commit is contained in:
parent
2ad466e617
commit
6372ccd877
@ -45,7 +45,13 @@ $router->group(function () use ($router) {
|
||||
$router->put('modules/<module>', '\catchAdmin\system\controller\Module@disOrEnable');
|
||||
$router->put('cache/modules', '\catchAdmin\system\controller\Module@cache');
|
||||
$router->delete('clear/modules', '\catchAdmin\system\controller\Module@clear');
|
||||
|
||||
})->middleware('auth');
|
||||
|
||||
// 获取 table
|
||||
$router->get('table/<module>/<tableClass>', function ($module, $tableClass){
|
||||
$table = sprintf('\\catchAdmin\\%s\\tables\\%s', $module, $tableClass);
|
||||
|
||||
return (new $table)->render(request()->param('only'));
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user