/** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; router.post('/api/userInfo', controller.user.index); router.post('/api/chanpinInfo', controller.chanpin.index); router.post('/api/dingdanInfo', controller.dingdan.index); router.post('/api/exportDingdanInfo', controller.exportData.index); };