Configuring url based on service

I'm currently using the replacePath middleware to form my final url path. However, in the case I have multiple services that could be selected from my ingest path, I need to be able to specify a different url path based on which service will be used.
Is there a way to do this today? I couldn't find anything on modifying the service urls besides through the middleware, which won't know which service will be used.

Are you using Configuration Discovery? You can assign middlewares to services.