12345678910111213 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- router.get('/', controller.home.index);
- // 科目表设置路由
- router.resources('subject', '/api/subject', controller.subject); // index、create、show、destroy
- router.post('subject', '/api/subject/:id', controller.subject.update);
- };
|