routes.php 811 B

1234567891011121314151617
  1. <?php
  2. /** @var $this \OCP\Route\IRouter */
  3. $this->create('core_ajax_trashbin_preview', 'ajax/preview.php')
  4. ->actionInclude('files_trashbin/ajax/preview.php');
  5. $this->create('files_trashbin_ajax_delete', 'ajax/delete.php')
  6. ->actionInclude('files_trashbin/ajax/delete.php');
  7. $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php')
  8. ->actionInclude('files_trashbin/ajax/isEmpty.php');
  9. $this->create('files_trashbin_ajax_list', 'ajax/list.php')
  10. ->actionInclude('files_trashbin/ajax/list.php');
  11. $this->create('files_trashbin_ajax_undelete', 'ajax/undelete.php')
  12. ->actionInclude('files_trashbin/ajax/undelete.php');
  13. // Register with the capabilities API
  14. \OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Trashbin\Capabilities', 'getCapabilities'), 'files_trashbin', \OC_API::USER_AUTH);