From 6ec58b14a7edc9093479305be2e40c74607d5fbc Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 2 Sep 2013 15:59:43 +0200 Subject: fixing cors again --- appinfo/routes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appinfo') diff --git a/appinfo/routes.php b/appinfo/routes.php index 8a54c7435..617b63c53 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -275,11 +275,11 @@ $this->create('news_api_folders_read', '/api/v1-2/folders/{folderId}/read')->put /** * Feed API */ -/*$this->create('news_api_cors', '/api/v1-2/{path}')->method('options')->action( +$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( -- cgit v1.2.3