router.js 356 B

12345678910111213
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. const prefix = '/api/htyd';
  8. router.get('/', controller.home.index);
  9. router.post(`${prefix}/login`, controller.login.login);
  10. require('./router/card')(app); // 办卡
  11. require('./router/cash')(app); // 提现
  12. };