routes.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. * @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl>
  5. *
  6. * @author Lukas Reschke <lukas@statuscode.ch>
  7. * @author Roeland Jago Douma <roeland@famdouma.nl>
  8. * @author Vincent Petry <pvince81@owncloud.com>
  9. *
  10. * @license AGPL-3.0
  11. *
  12. * This code is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License, version 3,
  14. * as published by the Free Software Foundation.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License, version 3,
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>
  23. *
  24. */
  25. namespace OCA\Files_Trashbin\AppInfo;
  26. $application = new Application();
  27. $application->registerRoutes($this, [
  28. 'routes' => [
  29. [
  30. 'name' => 'Preview#getPreview',
  31. 'url' => '/ajax/preview.php',
  32. 'verb' => 'GET',
  33. ],
  34. ],
  35. ]);
  36. $this->create('files_trashbin_ajax_delete', 'ajax/delete.php')
  37. ->actionInclude('files_trashbin/ajax/delete.php');
  38. $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php')
  39. ->actionInclude('files_trashbin/ajax/isEmpty.php');
  40. $this->create('files_trashbin_ajax_list', 'ajax/list.php')
  41. ->actionInclude('files_trashbin/ajax/list.php');
  42. $this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php')
  43. ->actionInclude('files_trashbin/ajax/undelete.php');