12345678910111213141516171819202122232425262728293031 |
- <?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){
- // hydraulic路由
- $router->resource('hydraulic', '\catchAdmin\hydraulic\controller\Hydraulic');
- // deviceMold路由
- $router->resource('deviceMold', '\catchAdmin\hydraulic\controller\DeviceMold');
- $router->get('get_device_mold', '\catchAdmin\hydraulic\controller\DeviceMold@getDeviceMold');
- // wrench路由
- $router->resource('wrench', '\catchAdmin\hydraulic\controller\Wrench');
- //获取维保记录映射
- $router->get('get_mainten_option', '\catchAdmin\hydraulic\controller\Maintenance@getMaintenOption');
- $router->resource('maintenance_mapper', '\catchAdmin\hydraulic\controller\Maintenance');
- // 扳手校验路由
- $router->resource('wrenchCheckRecord', '\catchAdmin\hydraulic\controller\WrenchCheckRecord');
- $router->get('wrenchCheckRecordData', '\catchAdmin\hydraulic\controller\WrenchCheckRecord@decordDataList');
- // 液压设备路由
- $router->resource('hydEquipment', '\catchAdmin\hydraulic\controller\HydEquipment');
- //获取所有设备状态字典
- $router->get('getHydEquipmentType', '\catchAdmin\hydraulic\controller\HydEquipment@getHydEquipmentType');
- })->middleware('auth');
|