From c179198a0408f6d3edf27d5e3f8ab006da32bf0c Mon Sep 17 00:00:00 2001 From: Davide Saurino Date: Wed, 12 Mar 2014 23:57:55 +0100 Subject: Add feed renaming to the API (FIX #455) --- appinfo/routes.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'appinfo') diff --git a/appinfo/routes.php b/appinfo/routes.php index cc697d0a9..fc60a717c 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -354,6 +354,12 @@ $this->create('news_api_feeds_move', '/api/v1-2/feeds/{feedId}/move')->put()->ac } ); +$this->create('news_api_feeds_rename', '/api/v1-2/feeds/{feedId}/rename')->put()->action( + function($params) { + return App::main('FeedAPI', 'rename', $params, new DIContainer()); + } +); + $this->create('news_api_feeds_read', '/api/v1-2/feeds/{feedId}/read')->put()->action( function($params) { return App::main('FeedAPI', 'read', $params, new DIContainer()); -- cgit v1.2.3