You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * @author Georg Ehrke <georg@owncloud.com>
  4. * @author Joas Schilling <nickvergessen@owncloud.com>
  5. * @author Lukas Reschke <lukas@owncloud.com>
  6. * @author Morris Jobke <hey@morrisjobke.de>
  7. * @author Vincent Petry <pvince81@owncloud.com>
  8. *
  9. * @copyright Copyright (c) 2015, ownCloud, Inc.
  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. $this->create('core_ajax_trashbin_preview', 'ajax/preview.php')
  26. ->actionInclude('files_trashbin/ajax/preview.php');
  27. $this->create('files_trashbin_ajax_delete', 'ajax/delete.php')
  28. ->actionInclude('files_trashbin/ajax/delete.php');
  29. $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php')
  30. ->actionInclude('files_trashbin/ajax/isEmpty.php');
  31. $this->create('files_trashbin_ajax_list', 'ajax/list.php')
  32. ->actionInclude('files_trashbin/ajax/list.php');
  33. $this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php')
  34. ->actionInclude('files_trashbin/ajax/undelete.php');
  35. // Register with the capabilities API
  36. \OCP\API::register('get', '/cloud/capabilities', array('OCA\Files_Trashbin\Capabilities', 'getCapabilities'), 'files_trashbin', \OCP\API::USER_AUTH);