12345678910111213 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- const profix = '/api/article/';
- router.get('/', controller.home.index);
- router.post('user', `${profix}login`, controller.user.login);
- router.post('user', `${profix}init`, controller.user.init);
- require('./router/refute')(app); // 文章/辟谣
- };
|