diff options
Diffstat (limited to 'modern/src/setupProxy.js')
-rw-r--r-- | modern/src/setupProxy.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modern/src/setupProxy.js b/modern/src/setupProxy.js new file mode 100644 index 0000000..71312d5 --- /dev/null +++ b/modern/src/setupProxy.js @@ -0,0 +1,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' })); +}; |