From 27c7c7773eaaa0aa15fbf5bffeee501941d0d339 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 2 Aug 2013 14:34:08 +0200 Subject: add api for updating feeds with a seperate cron job, #301 --- appinfo/routes.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'appinfo') 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()); -- cgit v1.2.3