File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -114,16 +114,27 @@ app.put(
114
114
/*
115
115
Proxy All Other Administartion APIs
116
116
*/
117
- const apiProxy = createProxyMiddleware ( "/api/admin" , {
117
+ const apiAdminProxy = createProxyMiddleware ( "/api/admin" , {
118
118
target : process . env . AXP_BASE_URL ,
119
119
changeOrigin : true ,
120
120
} ) ;
121
121
122
+ /*
123
+ Proxy All Other Administartion APIs
124
+ */
125
+ const apiQeueMetricsProxy = createProxyMiddleware ( "/api/queue-metrics" , {
126
+ target : process . env . AXP_BASE_URL ,
127
+ changeOrigin : true ,
128
+ } ) ;
129
+
130
+
122
131
/*
123
132
Route Configuration
124
133
*/
125
134
126
- app . use ( "/api" , apiProxy ) ;
135
+ app . use ( "/api/admin" , apiAdminProxy ) ;
136
+
137
+ app . use ( "/api/queue-metrics" , apiQeueMetricsProxy ) ;
127
138
128
139
/*
129
140
SSL Configuration & Server Creation
You can’t perform that action at this time.
0 commit comments