Closed KidkArolis closed 5 years ago
Hi Karolis, thanks for reporting. Just to clarify, in this case you want to be able to route at endpoint level? So your remote server is listening at [HTTP VERB]/ ?
Hi Karolis, just release a new version that allows to override the path matching regex. Please checkout an example that satisfy your requirement:
Regards.
Hm, that kinda works, it just means I would match not only /logout, but also /logout-stuff. And I can't set pathRegex to '', because it's defaulted with pathRegex || '/*'
.
Locally, I've solved this with route.exactMatch ? route.prefix : route.prefix + '/*'
.
But I'll try your new release and see how that goes.
I get your point.
I will update accordingly to allow the complete ignoring of the pathRegex. Thx
Improvements here: https://github.com/jkyberneees/fastify-gateway/pull/5 Version 1.1.1 released
I'm trying to proxy the /logout url to my api server, but I think fastify-gateway does
prefix + '/*'
at which point /logout doesn't match anymore.