|
@@ -40,6 +40,7 @@ module.exports = app => {
|
|
|
router.resources('student', '/api/train/student', controller.student); // index、create、show、destroy
|
|
|
router.post('student', '/api/train/student/update/:id', controller.student.update);
|
|
|
router.post('student', '/api/train/student/upjob', controller.student.upjob);
|
|
|
+ router.post('student', '/api/train/student/deleteclass', controller.student.deleteclass); // 删除学生班级
|
|
|
|
|
|
// 班主任表设置路由
|
|
|
router.resources('headteacher', '/api/train/headteacher', controller.headteacher); // index、create、show、destroy
|