Revert "Match slashes in ../{id} resource routes"

This reverts commit 31f9be7a75.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-04-18 21:50:25 +02:00
parent 24f5c44e2b
commit d12ec7cff1
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -231,15 +231,9 @@ class RouteConfig {
$routeName = $this->appName . '.' . strtolower($resource) . '.' . strtolower($method);
$route = $this->router->create($routeName, $url)->method($verb)->action(
$this->router->create($routeName, $url)->method($verb)->action(
new RouteActionHandler($this->container, $controllerName, $actionName)
);
if (!$collectionAction) {
$route->requirements([
'id' => '[^?]*'
]);
}
}
}
}