blob: 71312d50ca5fe7bbb71818f09180ae9baa051fab (
plain)
1
2
3
4
5
6
|
const proxy = require('http-proxy-middleware');
module.exports = function(app) {
app.use(proxy('/api/socket', { target: 'ws://localhost:8082', ws: true }));
app.use(proxy('/api', { target: 'http://localhost:8082' }));
};
|