Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch route with regex #26

Closed
mDomingues opened this issue Apr 10, 2015 · 1 comment
Closed

Catch route with regex #26

mDomingues opened this issue Apr 10, 2015 · 1 comment
Assignees

Comments

@mDomingues
Copy link

This will allow catching a bad route using regex for situations where route is bad written.
Main route: "/home"
Bad route: "/hhome"

If I could declare a route e.Get("/* ") or e.Get(" [a-zA-Z0-9]+ ") I could work over the response Header.

Many thanks

@vishr
Copy link
Member

vishr commented Apr 30, 2015

Current implementation doesn't support regex but you can declare a route like /members/* which will match anything starting with /members/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants