How to customize dispatch rules in Perl's Catalyst?
How do you customize dispatch rules Catalyst are using when matching an url?
For example, I'd like GET /home/a
to call into sub a_GET : Local
and POST /home/a
to call sub a_POST : Local
.
I know that I can always write a common action that will call one of those functions based on the name but I'd like to hear about more generic option开发者_如何学Cs.
Catalyst::Controller::REST
精彩评论