aboutsummaryrefslogtreecommitdiffstats
path: root/src/setupProxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/setupProxy.js')
-rw-r--r--src/setupProxy.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/setupProxy.js b/src/setupProxy.js
new file mode 100644
index 0000000..240bdd2
--- /dev/null
+++ b/src/setupProxy.js
@@ -0,0 +1,10 @@
+const { createProxyMiddleware } = require('http-proxy-middleware');
+module.exports = function (app) {
+ app.use(
+ '/api',
+ createProxyMiddleware({
+ target: 'http://localhost:5001',
+ changeOrigin: true,
+ })
+ );
+};