Is your feature request related to a problem? Please describe.
I would like to have the ability to use a flag to create a rewrite to override the default rewrite: "" behavior. A good example would be trying to create the following:
This mapping routes to the free API, catfact.ninja using https://[external-IP]/cat/ which then is rewritten to be /fact/.
Another example would be the free API, https://jservice.io/api/random. I had created my own mapping that rewrote /api/ to be /trivia/
Describe the solution you'd like
An ideal solution would be the addition of a --path.rewrite flag so that the user can add in their own rewrite that doesn't require the regex substitution.
Describe alternatives you've considered
This cannot be achieved using the path.trim_prefix flag
Is your feature request related to a problem? Please describe. I would like to have the ability to use a flag to create a rewrite to override the default
rewrite: ""
behavior. A good example would be trying to create the following:This mapping routes to the free API, catfact.ninja using https://[external-IP]/cat/ which then is rewritten to be /fact/.
Another example would be the free API, https://jservice.io/api/random. I had created my own mapping that rewrote /api/ to be /trivia/
Describe the solution you'd like An ideal solution would be the addition of a --path.rewrite flag so that the user can add in their own rewrite that doesn't require the regex substitution.
Describe alternatives you've considered This cannot be achieved using the path.trim_prefix flag