1
0

routes.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. * @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
  5. *
  6. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  7. * @author Joas Schilling <coding@schilljs.com>
  8. * @author Lukas Reschke <lukas@statuscode.ch>
  9. * @author Morris Jobke <hey@morrisjobke.de>
  10. * @author Roeland Jago Douma <roeland@famdouma.nl>
  11. * @author Tom Needham <tom@owncloud.com>
  12. *
  13. * @license AGPL-3.0
  14. *
  15. * This code is free software: you can redistribute it and/or modify
  16. * it under the terms of the GNU Affero General Public License, version 3,
  17. * as published by the Free Software Foundation.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU Affero General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU Affero General Public License, version 3,
  25. * along with this program. If not, see <http://www.gnu.org/licenses/>
  26. *
  27. */
  28. namespace OCA\Files_Versions\AppInfo;
  29. /** @var Application $application */
  30. $application = \OC::$server->query(Application::class);
  31. $application->registerRoutes($this, [
  32. 'routes' => [
  33. [
  34. 'name' => 'Preview#getPreview',
  35. 'url' => '/preview',
  36. 'verb' => 'GET',
  37. ],
  38. ],
  39. ]);
  40. /** @var $this \OCP\Route\IRouter */
  41. $this->create('files_versions_download', 'apps/files_versions/download.php')
  42. ->actionInclude('files_versions/download.php');
  43. $this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
  44. ->actionInclude('files_versions/ajax/getVersions.php');
  45. $this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
  46. ->actionInclude('files_versions/ajax/rollbackVersion.php');