开发者

How to customize dispatch rules in Perl's Catalyst?

开发者 https://www.devze.com 2023-01-29 09:07 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号