routes.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. * @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
  5. *
  6. * @author Björn Schießle <bjoern@schiessle.org>
  7. * @author Jörn Friedrich Dreyer <jfd@butonic.de>
  8. * @author Lukas Reschke <lukas@statuscode.ch>
  9. * @author Morris Jobke <hey@morrisjobke.de>
  10. * @author Roeland Jago Douma <roeland@famdouma.nl>
  11. * @author Thomas Müller <thomas.mueller@tmit.eu>
  12. * @author Tom Needham <tom@owncloud.com>
  13. *
  14. * @license AGPL-3.0
  15. *
  16. * This code is free software: you can redistribute it and/or modify
  17. * it under the terms of the GNU Affero General Public License, version 3,
  18. * as published by the Free Software Foundation.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU Affero General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU Affero General Public License, version 3,
  26. * along with this program. If not, see <http://www.gnu.org/licenses/>
  27. *
  28. */
  29. namespace OCA\Files_Versions\AppInfo;
  30. $application = new Application();
  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', 'download.php')
  42. ->actionInclude('files_versions/download.php');
  43. $this->create('files_versions_ajax_getVersions', 'ajax/getVersions.php')
  44. ->actionInclude('files_versions/ajax/getVersions.php');
  45. $this->create('files_versions_ajax_rollbackVersion', 'ajax/rollbackVersion.php')
  46. ->actionInclude('files_versions/ajax/rollbackVersion.php');