From df509a4b856472fa22fd6d43a212c9d21bd5b40f Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 23 Jan 2015 14:32:53 +0100 Subject: fix #711 --- controller/feedcontroller.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'controller') diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php index 3be802a34..46c2a5010 100644 --- a/controller/feedcontroller.php +++ b/controller/feedcontroller.php @@ -294,4 +294,21 @@ class FeedController extends Controller { } + /** + * @NoAdminRequired + * + * @param int $feedId + * @param int $ordering + */ + public function ordering ($feedId, $ordering) { + try { + $this->feedService->setOrdering($feedId, $ordering, $this->userId); + } catch(ServiceNotFoundException $ex) { + return $this->error($ex, Http::STATUS_NOT_FOUND); + } + + return []; + } + + } \ No newline at end of file -- cgit v1.2.3