diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index 2f367b801d66..6b6ce00e312a 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -56,3 +56,19 @@ function() { '/apps/files_sharing/api/v1/shares/{id}', array('\OCA\Files_Sharing\API\Local', 'deleteShare'), 'files_sharing'); + +\OC_API::register('get', + '/apps/files_sharing/api/v1old/shares', + array('\OCA\Files_Sharing\API\Local', 'getAllShares'), + 'files_sharing'); + +\OC_API::register('post', + '/apps/files_sharing/api/v1old/shares', + array('\OCA\Files_Sharing\API\Local', 'createShare'), + 'files_sharing'); + +\OC_API::register('get', + '/apps/files_sharing/api/v1old/shares/{id}', + array('\OCA\Files_Sharing\API\Local', 'getShare'), + 'files_sharing'); + \ No newline at end of file