c9s / Pux

Pux is a fast PHP Router and includes out-of-box controller tools
MIT License
1.27k stars 81 forks source link

Raw url with slashes. #109

Open ddv88 opened 7 years ago

ddv88 commented 7 years ago

Why there is no pattern to match dynamic paths? Something like this: https://website.com/search/:a-lot-of-filters to match all variants of url https://website.com/search/filter-1/filter-2/filter-8/filter-n. I want to parse this string by myself with parse_url, without using patterns after search. In symfony i can do the following: (new RouteCollection)->add("search", new Route("/search/{any}", ["controller" => AppBundle:Default:search"], ["any" => ".+"]));

c9s commented 1 year ago

I think this is supported

c9s commented 1 year ago

you can use [^/] to catch it ?