diff options
Diffstat (limited to 'controller')
-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 |