I am trying to setup http-proxy-middleware for multiple API URLs with same end point, which is not working.
setupProxy.php
const proxy =require("http-proxy-middleware");
module.exports = function(app)
{
app.use(proxy("rest/V1/orders",{target:"http://example.net/",changeOrigin:true}));
app.use(proxy("rest/V1/orders",{target:"http://example.org/",changeOrigin:true}));
app.use(proxy("rest/V1/orders",{target:"http://example.com/",changeOrigin:true}));
}