Skip to content

Commit

Permalink
修复信道连接问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonelchen committed Aug 30, 2017
1 parent 941ba67 commit 8b10991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/config.js
@@ -1,6 +1,6 @@
const CONF = {
port: '5757',
rootPathname: '/weapp',
rootPathname: '',

// 微信小程序 App ID
appId: '',
Expand Down
3 changes: 1 addition & 2 deletions server/routes/index.js
@@ -1,9 +1,8 @@
/**
* ajax 服务路由集合
*/
const config = require('../config')
const router = require('koa-router')({
prefix: config.rootPathname // 定义所有路由的前缀都已 /weapp 开头
prefix: '/weapp' // 定义所有路由的前缀都已 /weapp 开头
})
const controllers = require('../controllers')

Expand Down

0 comments on commit 8b10991

Please sign in to comment.