summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index 7bb3ba40c..25eb04dc2 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -275,12 +275,24 @@ $this->create('news_api_feeds_get_all', '/api/v1-2/feeds')->get()->action(
}
);
+$this->create('news_api_feeds_get_all_from_all_users', '/api/v1-2/feeds/all')->get()->action(
+ function($params) {
+ return App::main('FeedAPI', 'getAllFromAllUsers', $params, new DIContainer());
+ }
+);
+
$this->create('news_api_feeds_create', '/api/v1-2/feeds')->post()->action(
function($params) {
return App::main('FeedAPI', 'create', $params, new DIContainer());
}
);
+$this->create('news_api_feeds_update', '/api/v1-2/feeds/update')->get()->action(
+ function($params) {
+ return App::main('FeedAPI', 'update', $params, new DIContainer());
+ }
+);
+
$this->create('news_api_feeds_delete', '/api/v1-2/feeds/{feedId}')->delete()->action(
function($params) {
return App::main('FeedAPI', 'delete', $params, new DIContainer());