123456789101112 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- router.get('/', controller.home.index);
- // 待办事项
- router.resources('message', '/api/message', controller.message); // index、create、show、destroy
- };
|