1
0

routes.php 824 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. use OCP\Route\IRouter;
  9. /** @var IRouter $this */
  10. $this->create('files_versions_download', 'apps/files_versions/download.php')
  11. ->actionInclude('files_versions/download.php');
  12. $this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
  13. ->actionInclude('files_versions/ajax/getVersions.php');
  14. $this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
  15. ->actionInclude('files_versions/ajax/rollbackVersion.php');
  16. return [
  17. 'routes' => [
  18. [
  19. 'name' => 'Preview#getPreview',
  20. 'url' => '/preview',
  21. 'verb' => 'GET',
  22. ],
  23. ],
  24. ];