summaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo/routes.php
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2015-08-10 20:33:50 +0200
committerRoeland Douma <rullzer@users.noreply.github.com>2015-08-10 20:33:50 +0200
commitc2856c05aa9cbdc3adddea127a8588183647ee0a (patch)
treead9f474fb95007345f2e78c3d4e998d0f6f97308 /apps/files_versions/appinfo/routes.php
parent6e4a79f8529a69b846f73257cc581d2b80f7762d (diff)
parentf0b617b50825566ec1b417eed09688e88de5f0bb (diff)
downloadnextcloud-server-c2856c05aa9cbdc3adddea127a8588183647ee0a.tar.gz
nextcloud-server-c2856c05aa9cbdc3adddea127a8588183647ee0a.zip
Merge pull request #15093 from rullzer/capabilities_manager
Capabilities manager
Diffstat (limited to 'apps/files_versions/appinfo/routes.php')
-rw-r--r--apps/files_versions/appinfo/routes.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index 5dbed1f93eb..9bab86d9224 100644
--- a/apps/files_versions/appinfo/routes.php
+++ b/apps/files_versions/appinfo/routes.php
@@ -1,10 +1,10 @@
<?php
/**
* @author Björn Schießle <schiessle@owncloud.com>
- * @author Joas Schilling <nickvergessen@owncloud.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Lukas Reschke <lukas@owncloud.com>
* @author Morris Jobke <hey@morrisjobke.de>
+ * @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Tom Needham <tom@owncloud.com>
*
@@ -25,6 +25,10 @@
*
*/
+namespace OCA\Files_Versions\AppInfo;
+
+$application = new Application();
+
/** @var $this \OCP\Route\IRouter */
$this->create('core_ajax_versions_preview', '/preview')->action(
function() {
@@ -38,5 +42,3 @@ $this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php')
$this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php')
->actionInclude('files_versions/ajax/rollbackVersion.php');
-// Register with the capabilities API
-\OCP\API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', \OCP\API::USER_AUTH);