summaryrefslogtreecommitdiffstats
path: root/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index a61eb33b0..c50f13fc1 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -275,6 +275,14 @@ $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(
+ function($params) {
+ return App::main('NewsAPI', 'cors', $params, new DIContainer());
+ }
+)->requirements(array('path', '.+'));
+
+
$this->create('news_api_feeds_get_all', '/api/v1-2/feeds')->get()->action(
function($params) {
return App::main('FeedAPI', 'getAll', $params, new DIContainer());