diff options
Diffstat (limited to 'controller/foldercontroller.php')
-rw-r--r-- | controller/foldercontroller.php | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/controller/foldercontroller.php b/controller/foldercontroller.php index 48a0d1694..e0ae5f8fb 100644 --- a/controller/foldercontroller.php +++ b/controller/foldercontroller.php @@ -33,23 +33,23 @@ use \OCA\AppFramework\Http\Request; class FolderController extends Controller { - public function __construct(API $api, Request $request, $folderMapper){ - parent::__construct($api, $request); - $this->folderMapper = $folderMapper; - } - - - /** - * @IsAdminExemption - * @IsSubAdminExemption - * @Ajax - * - * Returns all folders - */ - public function getAll(){ - $folders = $this->folderMapper->getAll(); - return $this->renderJSON($folders); - } + public function __construct(API $api, Request $request, $folderMapper){ + parent::__construct($api, $request); + $this->folderMapper = $folderMapper; + } + + + /** + * @IsAdminExemption + * @IsSubAdminExemption + * @Ajax + * + * Returns all folders + */ + public function getAll(){ + $folders = $this->folderMapper->getAll(); + return $this->renderJSON($folders); + } }
\ No newline at end of file |