|
|
@ -44,11 +44,12 @@ class Api { |
|
|
|
|
|
|
|
|
|
|
|
$share = \OCP\Share::getItemShared('file', null); |
|
|
|
$share = \OCP\Share::getItemShared('file', null); |
|
|
|
|
|
|
|
|
|
|
|
if ($share !== null) { |
|
|
|
if ($share === false) { |
|
|
|
return new \OC_OCS_Result($share); |
|
|
|
return new \OC_OCS_Result(null, 404, 'could not get shares'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return new \OC_OCS_Result(null, 404, 'no shares available'); |
|
|
|
return new \OC_OCS_Result($share); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|