routes.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @author Georg Ehrke <georg@owncloud.com>
  4. * @author Lukas Reschke <lukas@owncloud.com>
  5. * @author Morris Jobke <hey@morrisjobke.de>
  6. * @author Vincent Petry <pvince81@owncloud.com>
  7. *
  8. * @copyright Copyright (c) 2015, ownCloud, Inc.
  9. * @license AGPL-3.0
  10. *
  11. * This code is free software: you can redistribute it and/or modify
  12. * it under the terms of the GNU Affero General Public License, version 3,
  13. * as published by the Free Software Foundation.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License, version 3,
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>
  22. *
  23. */
  24. $this->create('core_ajax_trashbin_preview', 'ajax/preview.php')
  25. ->actionInclude('files_trashbin/ajax/preview.php');
  26. $this->create('files_trashbin_ajax_delete', 'ajax/delete.php')
  27. ->actionInclude('files_trashbin/ajax/delete.php');
  28. $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php')
  29. ->actionInclude('files_trashbin/ajax/isEmpty.php');
  30. $this->create('files_trashbin_ajax_list', 'ajax/list.php')
  31. ->actionInclude('files_trashbin/ajax/list.php');
  32. $this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php')
  33. ->actionInclude('files_trashbin/ajax/undelete.php');
  34. // Register with the capabilities API
  35. \OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Trashbin\Capabilities', 'getCapabilities'), 'files_trashbin', \OC_API::USER_AUTH);