q-koa 8.8.3 → 8.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const axios = require('axios')
|
|
1
2
|
const { Sequelize } = require('sequelize')
|
|
2
3
|
const db = new Map()
|
|
3
4
|
module.exports = {
|
|
@@ -131,6 +132,15 @@ module.exports = {
|
|
|
131
132
|
},
|
|
132
133
|
cacheModel: [],
|
|
133
134
|
defaultRouter: (router) => (app) => {
|
|
135
|
+
router.get('/weixin/h5_login', app.controller.weixin.h5_login)
|
|
136
|
+
router.get(
|
|
137
|
+
'/weixin/h5_login_callback',
|
|
138
|
+
app.controller.weixin.h5_login_callback
|
|
139
|
+
)
|
|
140
|
+
router.get(
|
|
141
|
+
'/weixin/h5_login_info_callback',
|
|
142
|
+
app.controller.weixin.h5_login_info_callback
|
|
143
|
+
)
|
|
134
144
|
router.get('/common/getAppConfig', app.controller.common.getAppConfig)
|
|
135
145
|
router.get('/weixin/messagePush', app.controller.weixin.messagePush)
|
|
136
146
|
router.get('/common/createQr', app.controller.common.createQr)
|