Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 14:09:46 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 14:44:48 +0300
commitf52ba44edb1c84be67e854125c3b9409e13a314a (patch)
tree6edd3bc274a490c9dfd657e872c4aa650e37e22f /apps/files/ajax
parent58599e0360c4a90b71f569214ac591092916622c (diff)
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.php40
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']]);
-}