一、路由进阶Egg路由的路由重定向,路由分组
在router.js修改为如下格式require引用
module.exports = app => { const { router, controller } = app; require('./routers/admin')(app); require('./routers/index')(app); require('./routers/api')(app); };
一、路由进阶Egg路由的路由重定向,路由分组
在router.js修改为如下格式require引用
module.exports = app => { const { router, controller } = app; require('./routers/admin')(app); require('./routers/index')(app); require('./routers/api')(app); };
内容版权声明:除非注明,否则皆为本站原创文章。