mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-09 21:16:18 +08:00
Changes on api
This commit is contained in:
parent
5d278e6d57
commit
fe856414fa
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ return [
|
||||||
['name' => 'share#deleteShareRequest', 'url' => '/api/v2/sharing/decline/{share_request_id}', 'verb' => 'DELETE'],
|
['name' => 'share#deleteShareRequest', 'url' => '/api/v2/sharing/decline/{share_request_id}', 'verb' => 'DELETE'],
|
||||||
['name' => 'share#getVaultItems', 'url' => '/api/v2/sharing/vault/{vault_guid}/get', 'verb' => 'GET'],
|
['name' => 'share#getVaultItems', 'url' => '/api/v2/sharing/vault/{vault_guid}/get', 'verb' => 'GET'],
|
||||||
['name' => 'share#getRevisions', 'url' => '/api/v2/sharing/revisions/{item_guid}', 'verb' => 'GET'],
|
['name' => 'share#getRevisions', 'url' => '/api/v2/sharing/revisions/{item_guid}', 'verb' => 'GET'],
|
||||||
['name' => 'share#getCredentialData', 'url' => '/api/v2/sharing/credential/{credential_guid}', 'verb' => 'GET'],
|
['name' => 'share#getPublicCredentialData', 'url' => '/api/v2/sharing/public/credential/{credential_guid}', 'verb' => 'GET'],
|
||||||
['name' => 'share#createPublicShare', 'url' => '/api/v2/sharing/public', 'verb' => 'POST'],
|
['name' => 'share#createPublicShare', 'url' => '/api/v2/sharing/public', 'verb' => 'POST'],
|
||||||
|
|
||||||
//Internal API
|
//Internal API
|
||||||
|
|
|
@ -295,9 +295,9 @@ class ShareController extends ApiController {
|
||||||
* @NoCSRFRequired
|
* @NoCSRFRequired
|
||||||
* @PublicPage
|
* @PublicPage
|
||||||
*/
|
*/
|
||||||
public function getCredentialData($credential_guid) {
|
public function getPublicCredentialData($credential_guid) {
|
||||||
try {
|
try {
|
||||||
$credential = $this->shareService->getSharedItem($this->userId, $credential_guid);
|
$credential = $this->shareService->getSharedItem(null, $credential_guid);
|
||||||
return new JSONResponse($credential);
|
return new JSONResponse($credential);
|
||||||
}
|
}
|
||||||
catch (DoesNotExistException $ex){
|
catch (DoesNotExistException $ex){
|
||||||
|
|
Loading…
Add table
Reference in a new issue