简体   繁体   English

Slim 框架:匹配以特定字符串开头的路由

[英]Slim framework: match routes starting with certain string

Using Slim framework V2.6.3, is it possible to define a single route which captures all routes starting with certain string ?使用 Slim 框架 V2.6.3,是否可以定义一个路由来捕获以特定字符串开头的所有路由

For example, I'd like to capture routes starting with apple-touch-icon , like these:例如,我想捕获以apple-touch-icon开头的路由,如下所示:

Thanks in advance提前致谢

In Slim 2, you can define route conditions:在 Slim 2 中,你可以定义路由条件:

https://www.slimframework.com/docs/v2/routing/conditions.html https://www.slimframework.com/docs/v2/routing/conditions.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM