开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜