diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-18 21:50:25 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-18 21:50:36 +0200 |
commit | d12ec7cff148c7406fb56af3d753fbf2b7a5e28c (patch) | |
tree | 187967a19e5bce98059ce48ed5e70d832995dae1 /lib/private/AppFramework/Routing | |
parent | 24f5c44e2b6ae949c6c592146ee8899b2a3add46 (diff) | |
download | nextcloud-server-d12ec7cff148c7406fb56af3d753fbf2b7a5e28c.tar.gz nextcloud-server-d12ec7cff148c7406fb56af3d753fbf2b7a5e28c.zip |
Revert "Match slashes in ../{id} resource routes"
This reverts commit 31f9be7a75712e9f8b7831ed29397527f9fa8baf.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/AppFramework/Routing')
-rw-r--r-- | lib/private/AppFramework/Routing/RouteConfig.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/AppFramework/Routing/RouteConfig.php b/lib/private/AppFramework/Routing/RouteConfig.php index e2675a3c847..70208725f46 100644 --- a/lib/private/AppFramework/Routing/RouteConfig.php +++ b/lib/private/AppFramework/Routing/RouteConfig.php @@ -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' => '[^?]*' - ]); - } } } } |