1234567891011121314151617181920212223 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- // 測試
- router.resources('test', '/api/servicezhwl/test', controller.test); // index、create、show、destroy
- router.post('test', '/api/servicezhwl/test/update/:id', controller.test.update);
- // 司机表
- router.resources('zhwldriver', '/api/servicezhwl/zhwldriver', controller.zhwldriver); // index、create、show、destroy
- router.post('zhwldriver', '/api/servicezhwl/zhwldriver/update/:id', controller.zhwldriver.update);
- // 车辆表
- router.resources('zhwlcar', '/api/servicezhwl/zhwlcar', controller.zhwlcar); // index、create、show、destroy
- router.post('zhwlcar', '/api/servicezhwl/zhwlcar/update/:id', controller.zhwlcar.update);
- // 系统设置路由
- require('./router/system')(app);
- };
|