Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a356c92

Browse files
committedJun 18, 2017
Express 路由设置
1 parent 58b8493 commit a356c92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎config/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ module.exports = {
2727
autoOpenBrowser: true,
2828
assetsSubDirectory: 'static',
2929
assetsPublicPath: '/',
30-
proxyTable: {},
30+
proxyTable: {
31+
'/api/': 'http://localhost:8081'
32+
},
3133
// CSS Sourcemaps off by default because relative paths are "buggy"
3234
// with this option, according to the CSS-Loader README
3335
// (https://github.com/webpack/css-loader#sourcemaps)

0 commit comments

Comments
 (0)
Please sign in to comment.