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

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

Comments

Projects
None yet
1 participant
Owner

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.

Owner

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 closed this in 28e0fa1 Jun 16, 2012

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