diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 14:34:08 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 14:34:08 +0200 |
commit | 27c7c7773eaaa0aa15fbf5bffeee501941d0d339 (patch) | |
tree | 18b1bcdb4e3d06c509d519cdb1865a626190c930 /appinfo | |
parent | 3b3b5b9033b060bc8428a397b34ccb2cad0d8307 (diff) |
add api for updating feeds with a seperate cron job, #301
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 12 |
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()); |