diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-23 14:32:53 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-23 14:32:53 +0100 |
commit | df509a4b856472fa22fd6d43a212c9d21bd5b40f (patch) | |
tree | be8be7824bd4ba3ee687c6e57d1383929360e505 /controller/feedcontroller.php | |
parent | 5adeba1a560985173974c9ac98c624093055d669 (diff) |
fix #711
Diffstat (limited to 'controller/feedcontroller.php')
-rw-r--r-- | controller/feedcontroller.php | 17 |
1 files changed, 17 insertions, 0 deletions
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 |