允许>字符Symfony2路由

时间:2019-10-26 13:03:23

标签: symfony-2.8

我将symfony2 fos路由包用于其余api的端点。

我有一个{searchTerm}关键字的url参数。

https://example.com/api/category/Production > Offices/1

并在控制器中定义了这样的路由。

@Rest\Get("/api/locations/category/{searchTerm}/{pageNumber}", 
requirements={"searchTerm"=".+>"})

但是它不起作用。

0 个答案:

没有答案