routes.php 908 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. $this->create('core_ajax_public_preview', '/publicpreview.png')->action(
  3. function() {
  4. require_once __DIR__ . '/../ajax/publicpreview.php';
  5. });
  6. // OCS API
  7. //TODO: SET: mail notification, waiting for PR #4689 to be accepted
  8. OC_API::register('get',
  9. '/apps/files_sharing/api/v1/shares',
  10. array('\OCA\Files\Share\Api', 'getAllShares'),
  11. 'files_sharing');
  12. OC_API::register('post',
  13. '/apps/files_sharing/api/v1/shares',
  14. array('\OCA\Files\Share\Api', 'createShare'),
  15. 'files_sharing');
  16. OC_API::register('get',
  17. '/apps/files_sharing/api/v1/shares/{id}',
  18. array('\OCA\Files\Share\Api', 'getShare'),
  19. 'files_sharing');
  20. OC_API::register('put',
  21. '/apps/files_sharing/api/v1/shares/{id}',
  22. array('\OCA\Files\Share\Api', 'updateShare'),
  23. 'files_sharing');
  24. OC_API::register('delete',
  25. '/apps/files_sharing/api/v1/shares/{id}',
  26. array('\OCA\Files\Share\Api', 'deleteShare'),
  27. 'files_sharing');