From 7f3a42d9493c0c9e23ad6084a77bcd164b588ad2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 13 Sep 2013 17:21:42 +0200 Subject: [PATCH] fix cors options request for routes deeper than one level --- appinfo/routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/routes.php b/appinfo/routes.php index 7f287d18c..fd54794b5 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -285,7 +285,7 @@ $this->create('news_api_cors', '/api/v1-2/{path}')->method('options')->action( function($params) { return App::main('NewsAPI', 'cors', $params, new DIContainer()); } -)->requirements(array('path', '.+')); +)->requirements(array('path' => '.+')); $this->create('news_api_feeds_get_all', '/api/v1-2/feeds')->get()->action(