BackendStack21 / fast-gateway

Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
MIT License
311 stars 34 forks source link

Ignore trailing slash #12

Closed Jamie452 closed 4 years ago

Jamie452 commented 5 years ago

Is it possible to ignore trailing slashes when requesting a prefix directly?

I tried to pass ignoreTrailingSlash: true as a restana config option but had no luck.

Wondering if there's a reason this behaviour is not available?

jkyberneees commented 5 years ago

Hi @Jamie452 thanks for reaching out. Could you please checkout the pathRegex config of the fast-gateway module. I guess modifying the default value would work for you.

In other case, can you please describe with an example what you are trying to get?

Looking forward to hear more from you.