Skip to content

Commit d63729d

Browse files
new api gateway path for notify
1 parent 1491b96 commit d63729d

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

API_Gateway/src/routes.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,25 @@ const ROUTES = [
7373
},
7474
},
7575
},
76+
{
77+
url: "/notify",
78+
auth: false,
79+
creditCheck: false,
80+
rateLimit: {
81+
windowMs: 60 * 1000,
82+
limit: 1000,
83+
},
84+
proxy: {
85+
target:
86+
process.env.NODE_ENV === "production"
87+
? "http://ws-server:4455/notify"
88+
: "http://localhost:4455/notify",
89+
changeOrigin: true,
90+
pathRewrite: {
91+
[`^/notify`]: "",
92+
},
93+
},
94+
},
7695
{
7796
url: "/versioning",
7897
auth: true,
@@ -96,7 +115,7 @@ const ROUTES = [
96115
url: "/run",
97116
auth: false,
98117
creditCheck: false,
99-
118+
100119
proxy: {
101120
target: "http://localhost:4001/run", // or the correct backend service
102121
changeOrigin: true,

0 commit comments

Comments
 (0)