add:新增导入导出公共接口

This commit is contained in:
JaguarJack
2021-04-24 20:32:36 +08:00
parent 38e10896d4
commit 4e1e040936
2 changed files with 110 additions and 0 deletions

View File

@@ -48,6 +48,11 @@ $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');
// excel 导入&导出通用
$router->post('excel/export', '\catchAdmin\system\controller\Excel@export');
$router->post('excel/import', '\catchAdmin\system\controller\Excel@import');
})->middleware('auth');
// 获取 table