'use strict'; /** * @param {Egg.Application} app - egg application */ module.exports = app => { const { router, controller } = app; const prefix = '/api/htyd'; router.get('/', controller.home.index); router.post(`${prefix}/login`, controller.login.login); require('./router/card')(app); // 办卡 require('./router/cash')(app); // 提现 };