|
@@ -97,6 +97,7 @@ module.exports = app => {
|
|
|
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.post('group', '/api/train/group/sethead', controller.group.sethead);
|
|
|
|
|
|
// 职责说明表设置路由
|
|
|
router.resources('duty', '/api/train/duty', controller.duty); // index、create、show、destroy
|
|
@@ -176,4 +177,12 @@ module.exports = app => {
|
|
|
// 聊天记录表设置路由
|
|
|
router.resources('record', '/api/train/record', controller.record); // index、create、show、destroy
|
|
|
router.post('record', '/api/train/record/update/:id', controller.record.update);
|
|
|
+
|
|
|
+ // 通知表设置路由
|
|
|
+ router.resources('notice', '/api/train/notice', controller.notice); // index、create、show、destroy
|
|
|
+ router.post('notice', '/api/train/notice/update/:id', controller.notice.update);
|
|
|
+
|
|
|
+ // 课程模板表设置路由
|
|
|
+ router.resources('lessonmode', '/api/train/lessonmode', controller.lessonmode); // index、create、show、destroy
|
|
|
+ router.post('lessonmode', '/api/train/lessonmode/update/:id', controller.lessonmode.update);
|
|
|
};
|