summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 1acf11334..28a6cadff 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -77,6 +77,12 @@ $this->create('news_folders_rename', '/folders/{folderId}/rename')->post()->acti
}
);
+$this->create('news_folders_read', '/folders/{folderId}/read')->post()->action(
+ function($params){
+ App::main('FolderController', 'read', $params, new DIContainer());
+ }
+);
+
/**
* Feeds
*/
@@ -118,7 +124,7 @@ $this->create('news_feeds_move', '/feeds/{feedId}/move')->post()->action(
$this->create('news_feeds_read', '/feeds/{feedId}/read')->post()->action(
function($params){
- App::main('ItemController', 'readFeed', $params, new DIContainer());
+ App::main('FeedController', 'read', $params, new DIContainer());
}
);
@@ -163,6 +169,12 @@ $this->create('news_items_unstar', '/items/{feedId}/{guidHash}/unstar')->post()-
}
);
+$this->create('news_items_all_read', '/items/read')->post()->action(
+ function($params){
+ App::main('ItemController', 'readAll', $params, new DIContainer());
+ }
+);
+
/**
* Export
*/