diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-13 17:21:42 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-13 17:21:42 +0200 |
commit | 7f3a42d9493c0c9e23ad6084a77bcd164b588ad2 (patch) | |
tree | eab033385de3e2e0b5a77e401efdffc2c4b2b1c2 | |
parent | 346a657bcf13b1c0a2e119ccdf40c53901d74f59 (diff) |
fix cors options request for routes deeper than one level
-rw-r--r-- | appinfo/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
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( |