1
0

routes.php 947 B

1234567891011121314151617181920212223242526272829
  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 Application $application */
  10. $application = \OC::$server->query(Application::class);
  11. $application->registerRoutes($this, [
  12. 'routes' => [
  13. [
  14. 'name' => 'Preview#getPreview',
  15. 'url' => '/preview',
  16. 'verb' => 'GET',
  17. ],
  18. ],
  19. ]);
  20. /** @var IRouter $this */
  21. $this->create('files_versions_download', 'apps/files_versions/download.php')
  22. ->actionInclude('files_versions/download.php');
  23. $this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
  24. ->actionInclude('files_versions/ajax/getVersions.php');
  25. $this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
  26. ->actionInclude('files_versions/ajax/rollbackVersion.php');