router.js 380 B

123456789101112
  1. 'use strict';
  2. /**
  3. * @param {Egg.Application} app - egg application
  4. */
  5. module.exports = app => {
  6. const { router, controller } = app;
  7. router.get('/', controller.home.index);
  8. router.get('/wxgateway/wxlogin/:site', controller.weixin.auth);
  9. router.get('/wxgateway/authBack', controller.weixin.authBack);
  10. router.get('/wxgateway/wxuser/:site', controller.weixin.wxUser);
  11. };