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

Any support of Respect/Rest for Routes (classes) #30

Closed
augustohp opened this issue Mar 11, 2012 · 2 comments
Closed

Any support of Respect/Rest for Routes (classes) #30

augustohp opened this issue Mar 11, 2012 · 2 comments
Assignees
Labels

Comments

@augustohp
Copy link
Member

Classes doesn't support the any method as they do for: get, post, put and delete. This is a very handy catchall function and should be available on classes as well as on functions.

@ghost ghost assigned augustohp Mar 11, 2012
@augustohp
Copy link
Member Author

This should act as a fallback if the given HTTP Method is not identified but the class has an any method implemented. There is no other use to this other than that, in my opinion.

@alganet
Copy link
Member

alganet commented May 24, 2012

I've researched this, I don't believe the changes in the architecture will pay its cost. The router sends the requested HTTP method to the routes (the one from the browser), changing it to pass the declared one as well (since both are needed for this verification to work) would be complicated.

Serving the same thing for every http method in a route isn't RESTful as well. I wonder how many users really need this. Closing the issue 'til someone misses it.

@alganet alganet closed this as completed May 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants