We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1491b96 commit d63729dCopy full SHA for d63729d
API_Gateway/src/routes.js
@@ -73,6 +73,25 @@ const ROUTES = [
73
},
74
75
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
95
{
96
url: "/versioning",
97
auth: true,
@@ -96,7 +115,7 @@ const ROUTES = [
115
url: "/run",
116
auth: false,
98
117
creditCheck: false,
99
-
118
+
100
119
proxy: {
101
120
target: "http://localhost:4001/run", // or the correct backend service
102
121
changeOrigin: true,
0 commit comments