routes.php 934 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace OCA\Files_Versions\AppInfo;
  8. /** @var Application $application */
  9. $application = \OC::$server->query(Application::class);
  10. $application->registerRoutes($this, [
  11. 'routes' => [
  12. [
  13. 'name' => 'Preview#getPreview',
  14. 'url' => '/preview',
  15. 'verb' => 'GET',
  16. ],
  17. ],
  18. ]);
  19. /** @var $this \OCP\Route\IRouter */
  20. $this->create('files_versions_download', 'apps/files_versions/download.php')
  21. ->actionInclude('files_versions/download.php');
  22. $this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
  23. ->actionInclude('files_versions/ajax/getVersions.php');
  24. $this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
  25. ->actionInclude('files_versions/ajax/rollbackVersion.php');