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

Routes ending with format extension (e.g. .js) #42

Closed
dolzenko opened this issue Oct 31, 2014 · 3 comments
Closed

Routes ending with format extension (e.g. .js) #42

dolzenko opened this issue Oct 31, 2014 · 3 comments

Comments

@dolzenko
Copy link

Trying to setup routes like /storage/:name.js makes httprouter think parameter name is :name.js instead of (desired) :name. Is there a way around it or is that by design?

@julienschmidt
Copy link
Owner

Sorry for the late reply,
currently there is no way to set a postfix like an format extension. But it is definitely on the list of planned features.

@philipgiuliani
Copy link

There is still no way in 2016, or?

@mathvav
Copy link

mathvav commented Jan 19, 2016

A way around it, although not as clean, you can always check the extension in the handler. Again, not as handy, but it's doable.

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

No branches or pull requests

4 participants