Generic request router that uses API config to route requests to an http-endpoint.