Blame view
sources/apps/files_sharing/appinfo/routes.php
908 Bytes
|
03e52840d
|
1 |
<?php |
|
31b7f2792
|
2 3 4 5 |
$this->create('core_ajax_public_preview', '/publicpreview.png')->action(
function() {
require_once __DIR__ . '/../ajax/publicpreview.php';
});
|
|
03e52840d
|
6 |
// OCS API |
|
31b7f2792
|
7 |
//TODO: SET: mail notification, waiting for PR #4689 to be accepted |
|
03e52840d
|
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
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');
|