/** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; router.post('/api/upload', controller.user.index); router.post('/api/download', controller.user.download); router.get('/api/getPng', controller.user.getPng); };