Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您如何自定义 Catalyst 在匹配 url 时使用的调度规则?
例如,我想GET /home/a拨打sub a_GET : Local和POST /home/a拨打sub a_POST : Local.
GET /home/a
sub a_GET : Local
POST /home/a
sub a_POST : Local
我知道我总是可以编写一个通用操作,该操作将根据名称调用其中一个函数,但我想听听更多通用选项。
催化剂::控制器::REST