We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbae22 commit 246311bCopy full SHA for 246311b
frontend/src/setupProxy.js
@@ -1,16 +1,17 @@
1
-const { createProxyMiddleware } = require('http-proxy-middleware');
2
-
3
-module.exports = function(app) {
4
- app.use(
5
- createProxyMiddleware('/ws', {
6
- target: 'ws://localhost/',
7
- ws: true,
8
- })
9
- );
10
11
- createProxyMiddleware('/',{
12
- target: 'http://localhost',
13
14
+// eslint-disable-next-line import/no-extraneous-dependencies
+const { createProxyMiddleware } = require("http-proxy-middleware");
15
+module.exports = function (app) {
+ app.use(
+ createProxyMiddleware("/ws", {
+ target: "ws://localhost/",
+ // eslint-disable-next-line id-length
+ ws: true,
+ }),
+ );
+ createProxyMiddleware("/api", {
+ target: "http://localhost",
16
17
};
0 commit comments