jfromaniello / express-unless

Conditionally add a middleware to express with some common patterns
MIT License
178 stars 27 forks source link

More examples #23

Open objectiveSee opened 6 years ago

objectiveSee commented 6 years ago

It would be nice to see more examples of usage in this README. I am stuck trying to figure a lot of use cases out. :)

KrisLau commented 2 years ago

I agree I would love to see some regex use cases especially for common ones like excluding all sub-routes under the same path. For example, excluding /user and all its sub-paths like /user/:id, /user/groups, etc