1234567891011121314 |
- 'use strict';
- /**
- * @param {Egg.Application} app - egg application
- */
- module.exports = app => {
- const { router, controller } = app;
- router.get('/', controller.home.index);
- // 取得acess_token
- router.get('/api/wechat/accesstoken', controller.wechat.accesstoken);
- router.get('/api/wechat/jsapiticket', controller.wechat.jsapiticket);
- router.get('/api/wechat/getsign', controller.wechat.getsign);
- };
|