diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-16 20:42:35 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-03 14:00:33 +0100 |
commit | d720a2fb5719122a0250d63c269380c6ba413755 (patch) | |
tree | 63360dc37fdbcbbb95eba24c12700008ec46d4e3 /apps/files_versions/appinfo/routes.php | |
parent | 2164085f22b56a3d9739a57788a93779a0d6ac39 (diff) | |
download | nextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.tar.gz nextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.zip |
Moved over files_versions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_versions/appinfo/routes.php')
-rw-r--r-- | apps/files_versions/appinfo/routes.php | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php index c2b686c38f3..434ff9d26ac 100644 --- a/apps/files_versions/appinfo/routes.php +++ b/apps/files_versions/appinfo/routes.php @@ -1,6 +1,7 @@ <?php /** * @copyright Copyright (c) 2016, ownCloud, Inc. + * @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl> * * @author Björn Schießle <bjoern@schiessle.org> * @author Jörn Friedrich Dreyer <jfd@butonic.de> @@ -29,13 +30,17 @@ namespace OCA\Files_Versions\AppInfo; $application = new Application(); +$application->registerRoutes($this, [ + 'routes' => [ + [ + 'name' => 'Preview#getPreview', + 'url' => '/preview', + 'verb' => 'GET', + ], + ], +]); /** @var $this \OCP\Route\IRouter */ -$this->create('core_ajax_versions_preview', '/preview')->action( -function() { - require_once __DIR__ . '/../ajax/preview.php'; -}); - $this->create('files_versions_download', 'download.php') ->actionInclude('files_versions/download.php'); $this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php') |