Fix documentation of http-proxy-middleware (#5226)

This commit is contained in:
Kohei Hasegawa
2018-10-03 01:21:19 +09:00
committed by Ian Sutherland
parent 2b2d8667f2
commit ab272d25d5

View File

@@ -1211,7 +1211,7 @@ You can now register proxies as you wish! Here's an example using the above `htt
const proxy = require('http-proxy-middleware');
module.exports = function(app) {
app.use(proxy('/api', { target: 'http://localhost:5000/' }));
app.use('/api', proxy({ target: 'http://localhost:5000/' }));
};
```