Blame view

sources/apps/files_sharing/appinfo/routes.php 1.24 KB
03e52840d   Kload   Init
1
  <?php
6d9380f96   Cédric Dupont   Update sources OC...
2
3
4
5
6
7
8
9
10
  /** @var $this \OCP\Route\IRouter */
  $this->create('core_ajax_public_preview', '/publicpreview')->action(
  	function() {
  		require_once __DIR__ . '/../ajax/publicpreview.php';
  	});
  
  $this->create('sharing_external_shareinfo', '/shareinfo')->actionInclude('files_sharing/ajax/shareinfo.php');
  $this->create('sharing_external_add', '/external')->actionInclude('files_sharing/ajax/external.php');
  $this->create('sharing_external_test_remote', '/testremote')->actionInclude('files_sharing/ajax/testremote.php');
31b7f2792   Kload   Upgrade to ownclo...
11

03e52840d   Kload   Init
12
  // OCS API
31b7f2792   Kload   Upgrade to ownclo...
13
  //TODO: SET: mail notification, waiting for PR #4689 to be accepted
03e52840d   Kload   Init
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
  OC_API::register('get',
  		'/apps/files_sharing/api/v1/shares',
  		array('\OCA\Files\Share\Api', 'getAllShares'),
  		'files_sharing');
  
  OC_API::register('post',
  		'/apps/files_sharing/api/v1/shares',
  		array('\OCA\Files\Share\Api', 'createShare'),
  		'files_sharing');
  
  OC_API::register('get',
  		'/apps/files_sharing/api/v1/shares/{id}',
  		array('\OCA\Files\Share\Api', 'getShare'),
  		'files_sharing');
  
  OC_API::register('put',
  		'/apps/files_sharing/api/v1/shares/{id}',
  		array('\OCA\Files\Share\Api', 'updateShare'),
  		'files_sharing');
  
  OC_API::register('delete',
  		'/apps/files_sharing/api/v1/shares/{id}',
  		array('\OCA\Files\Share\Api', 'deleteShare'),
  		'files_sharing');