And the users/ endpoint actually needs an ID, like: users/123, but when I request the gateway endpoint change-password/123, it redirects to users/ without the ID. How can I make it pass along the ID as well?
P.S. I was digging in here but could not find some easy “how-to” explanation of writing rewrites. Any guidance?
It worked! Thanks. (I only had to add an escaping backslash before \d+, because otherwise it was rendered as an invalid string).
Now, where could I read about this pattern, using $1, in the docs? I went through them but couldn’t find something related. Maybe I missed it… It would be useful, if there’s a concise list of patterns to use when writing up gateway configs (or smth like that).