1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- $router->group(function () use ($router) {
- // 登录日志
- $router->get('log/login', '\catchAdmin\system\controller\LoginLog@list');
- $router->delete('log/login/<id>', '\catchAdmin\system\controller\LoginLog@empty');
- // 操作日志
- $router->get('log/operate', '\catchAdmin\system\controller\OperateLog@list');
- // $router->delete('empty/log/operate', '\catchAdmin\system\controller\OperateLog@empty');
- $router->delete('log/operate/<id>', '\catchAdmin\system\controller\OperateLog@delete');
- // 数据字典
- $router->get('tables', '\catchAdmin\system\controller\DataDictionary@tables');
- $router->get('table/view/<table>', '\catchAdmin\system\controller\DataDictionary@view');
- $router->post('table/optimize', '\catchAdmin\system\controller\DataDictionary@optimize');
- $router->post('table/backup', '\catchAdmin\system\controller\DataDictionary@backup');
- //下发设备
- $router->resource('lssue', '\catchAdmin\system\controller\Lssue');
- // 附件
- $router->resource('attachments', '\catchAdmin\system\controller\Attachments');
- // 配置
- $router->get('config/parent', '\catchAdmin\system\controller\Config@parent');
- $router->resource('config', '\catchAdmin\system\controller\Config');
- // 代码生成
- $router->post('generate', '\catchAdmin\system\controller\Generate@save');
- $router->post('generate/preview', '\catchAdmin\system\controller\Generate@preview'); // 预览
- $router->post('generate/create/module', '\catchAdmin\system\controller\Generate@createModule'); // 创建模块
- // 敏感词
- $router->resource('sensitive/word', '\catchAdmin\system\controller\SensitiveWord');
- //developer路由
- $router->resource('developer', '\catchAdmin\system\controller\Developer')->middleware('auth');
- // 开发者认证
- $router->post('developer/authenticate', '\catchAdmin\system\controller\Developer@authenticate');
- // 模块管理
- $router->get('modules', '\catchAdmin\system\controller\Module@index');
- $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');
- // 上传
- $router->group('upload', function () use ($router) {
- $router->post('image', '\catchAdmin\system\controller\Upload@image');
- $router->post('file', '\catchAdmin\system\controller\Upload@file');
- $router->post('file_v2', '\catchAdmin\system\controller\Upload@file_v2');
- $router->post('unlinkFile', '\catchAdmin\system\controller\Upload@unlinkFile');
- $router->post('file_excel', '\catchAdmin\system\controller\Upload@file_excel');
- $router->get('osspolicy', '\catchAdmin\system\controller\Upload@getAliOssPolicy');
- $router->post('osscallback', '\catchAdmin\system\controller\Upload@aliOssCallback');
- });
- // sysDictType路由
- $router->group('sysDictType', function () use ($router) {
- $router->resource('/', '\catchAdmin\system\controller\SysDictType');
- });
- // sysDictData路由
- $router->group('sysDictData', function () use ($router) {
- $router->resource('/', '\catchAdmin\system\controller\SysDictData');
- $router->post('getOptions', '\catchAdmin\system\controller\SysDictData@getOptionsByCode');
- // lssue路由
- });
|