diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 12:09:46 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 12:44:48 +0100 |
commit | f52ba44edb1c84be67e854125c3b9409e13a314a (patch) | |
tree | 6edd3bc274a490c9dfd657e872c4aa650e37e22f /apps/files/ajax | |
parent | 58599e0360c4a90b71f569214ac591092916622c (diff) | |
download | nextcloud-server-f52ba44edb1c84be67e854125c3b9409e13a314a.tar.gz nextcloud-server-f52ba44edb1c84be67e854125c3b9409e13a314a.zip |
Move storagestats endpoint to proper controller
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/ajax')
-rw-r--r-- | apps/files/ajax/getstoragestats.php | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/apps/files/ajax/getstoragestats.php b/apps/files/ajax/getstoragestats.php deleted file mode 100644 index d1d8d57b468..00000000000 --- a/apps/files/ajax/getstoragestats.php +++ /dev/null @@ -1,40 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2016, ownCloud, Inc. - * - * @author Jörn Friedrich Dreyer <jfd@butonic.de> - * @author Lukas Reschke <lukas@statuscode.ch> - * @author Robin Appelman <robin@icewind.nl> - * @author Thomas Müller <thomas.mueller@tmit.eu> - * @author Vincent Petry <pvince81@owncloud.com> - * - * @license AGPL-3.0 - * - * This code is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License, version 3, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License, version 3, - * along with this program. If not, see <http://www.gnu.org/licenses/> - * - */ -$dir = '/'; - -if (isset($_GET['dir'])) { - $dir = (string)$_GET['dir']; -} - -OCP\JSON::checkLoggedIn(); -\OC::$server->getSession()->close(); - -// send back json -try { - OCP\JSON::success(array('data' => \OCA\Files\Helper::buildFileStorageStatistics($dir))); -} catch (\OCP\Files\NotFoundException $e) { - OCP\JSON::error(['data' => ['message' => 'Folder not found']]); -} |