server/apps/files_sharing/appinfo/routes.php

66 lines
1.6 KiB
PHP
Raw Normal View History

<?php
$this->create('core_ajax_public_preview', '/publicpreview.png')->action(
function() {
require_once __DIR__ . '/../ajax/publicpreview.php';
});
2013-09-06 08:49:21 +00:00
//TODO: SET: unshare
//TODO: SET: expire date
//TODO: SET: mail notification
2013-09-06 08:49:21 +00:00
//TODO: SET: can upload
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' => '.+'));
/*
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' => ''));
*/