Registers proxy routes for microservices in the API gateway. Accepts a config array for flexibility and reusability.
The Express application instance.
The http-proxy instance.
Array of route configs: { apiPath, target, rewritePrefix, serviceName }
Registers proxy routes for microservices in the API gateway. Accepts a config array for flexibility and reusability.