2013-08-19 11:24:07 +00:00
|
|
|
<?php
|
|
|
|
$this->create('core_ajax_public_preview', '/publicpreview.png')->action(
|
|
|
|
function() {
|
|
|
|
require_once __DIR__ . '/../ajax/publicpreview.php';
|
2013-09-04 12:32:05 +00:00
|
|
|
});
|
|
|
|
|
2013-09-06 08:49:21 +00:00
|
|
|
//TODO: SET: unshare
|
2013-09-04 12:32:05 +00:00
|
|
|
//TODO: SET: expire date
|
|
|
|
//TODO: SET: mail notification
|
2013-09-06 08:49:21 +00:00
|
|
|
//TODO: SET: can upload
|
2013-09-04 12:32:05 +00:00
|
|
|
|
|
|
|
OC_API::register('get',
|
|
|
|
'/apps/files_sharing/api/share/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'getShare'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''),
|
|
|
|
array('path' => '.+')); //allow slashes in parameter path
|
2013-09-06 08:49:21 +00:00
|
|
|
|
|
|
|
OC_API::register('post',
|
|
|
|
'/apps/files_sharing/api/share/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'setShare'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''),
|
|
|
|
array('path' => '.+'));
|
|
|
|
|
|
|
|
OC_API::register('post',
|
|
|
|
'/apps/files_sharing/api/permission/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'setPermission'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''),
|
|
|
|
array('path' => '.+'));
|
|
|
|
|
2013-09-06 14:00:01 +00:00
|
|
|
OC_API::register('post',
|
|
|
|
'/apps/files_sharing/api/expire/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'setExpire'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''),
|
|
|
|
array('path' => '.+'));
|
|
|
|
|
2013-09-04 12:32:05 +00:00
|
|
|
/*
|
|
|
|
OC_API::register('get',
|
|
|
|
'/apps/files_sharing/api/permission/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'getShare'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''));
|
|
|
|
|
|
|
|
OC_API::register('get',
|
|
|
|
'/apps/files_sharing/api/expire/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'getShare'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''));
|
|
|
|
|
|
|
|
OC_API::register('get',
|
|
|
|
'/apps/files_sharing/api/notify/{path}',
|
|
|
|
array('\OCA\Files\Share\Api', 'getShare'),
|
|
|
|
'files_sharing',
|
|
|
|
OC_API::USER_AUTH,
|
|
|
|
array('path' => ''));
|
|
|
|
*/
|