|
@@ -97,6 +97,8 @@ module.exports = app => {
|
|
|
// 分组表设置路由
|
|
|
router.resources('group', '/api/train/group', controller.group); // index、create、show、destroy
|
|
|
router.post('group', '/api/train/group/update/:id', controller.group.update);
|
|
|
+ router.post('group', '/api/train/group/insert', controller.group.insert);
|
|
|
+ router.post('group', '/api/train/group/exit', controller.group.exit);
|
|
|
|
|
|
// 职责说明表设置路由
|
|
|
router.resources('duty', '/api/train/duty', controller.duty); // index、create、show、destroy
|