Add share functionality to NextCloud

This commit is contained in:
Jan Oberhauser
2021-10-14 05:47:29 -07:00
parent 7ddd6ad9c2
commit 6c527f8e8e
2 changed files with 264 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ export async function nextCloudApiRequest(this: IHookFunctions | IExecuteFunctio
options.uri = `${credentials.webDavUrl}/${encodeURI(endpoint)}`;
if (resource === 'user') {
if (resource === 'user' || operation === 'share') {
options.uri = options.uri.replace('/remote.php/webdav', '');
}
return await this.helpers.request(options);