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

Add the ability to route requests based on request method. #97

Closed
trq opened this issue Jun 3, 2012 · 1 comment
Closed

Add the ability to route requests based on request method. #97

trq opened this issue Jun 3, 2012 · 1 comment
Labels
Milestone

Comments

@trq
Copy link
Member

trq commented Jun 3, 2012

Currently routing completely ignores the request type when mapping a route to a controller. We could gain much finer grained control over route mapping by allowing the request type to play a part in this process.

This would mean the a url such as /foo could map to two completely different controllers depending on wether or not it is GET or POST.

@trq
Copy link
Member Author

trq commented Jun 3, 2012

Part of implementing this should also be changing the Router (and likely Routes) to accept the Request object. This is something that should be implemented anyway as it opens the door to different Route implementations based on sub domains etc etc.

@trq trq closed this as completed in 28e0fa1 Jun 16, 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

1 participant