12345678910111213141516171819202122232425262728 |
- <?php
- // +----------------------------------------------------------------------
- // | CatchAdmin [Just Like ~ ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
- // +----------------------------------------------------------------------
- // | Author: JaguarJack [ njphper@gmail.com ]
- // +----------------------------------------------------------------------
- // you should use `$router`
- $router->group(function () use ($router) {
- // workLocation路由
- //$router->resource('worklocation', '\catchAdmin\worklocation\controller\WorkLocation');
- $router->resource('workRecord', '\catchAdmin\worklocation\controller\WorkRecord');
- // workplan路由
- $router->resource('workplan', '\catchAdmin\worklocation\controller\Workplan');
- $router->get('queryFanByWindId', '\catchAdmin\worklocation\controller\Workplan@getFanIdByWindId');
- })->middleware('auth');
- //维保记录统计图标
- $router->group('WorkLocationChart', function () use ($router) {
- //维保记录
- $router->get('total', '\catchAdmin\worklocation\controller\WorkLocation@getTotal');
- // workRecord路由
- })->middleware('auth');
|