aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/setupProxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/setupProxy.js')
-rw-r--r--frontend/src/setupProxy.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/src/setupProxy.js b/frontend/src/setupProxy.js
new file mode 100644
index 0000000..6f082c8
--- /dev/null
+++ b/frontend/src/setupProxy.js
@@ -0,0 +1,7 @@
+const { createProxyMiddleware } = require('http-proxy-middleware');
+
+module.exports = function(app) {
+ app.use(createProxyMiddleware("/api", { target: "http://localhost:3333" }));
+ app.use(createProxyMiddleware("/setup", { target: "http://localhost:3333" }));
+ app.use(createProxyMiddleware("/ws", { target: "http://localhost:3333", ws: true }));
+};