router.js 414 B

1234567891011121314
  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. // 取得acess_token
  9. router.get('/api/wechat/accesstoken', controller.wechat.accesstoken);
  10. router.get('/api/wechat/jsapiticket', controller.wechat.jsapiticket);
  11. router.get('/api/wechat/getsign', controller.wechat.getsign);
  12. };