diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-07-15 12:46:14 +0000 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2021-07-23 15:56:28 +0200 |
commit | 6e5191b7021b448a48d741233bd17ab3c222119f (patch) | |
tree | 26c353643f5d1dd764d512e1fd15e15168d54346 /apps/files_sharing/src/views | |
parent | 229bfcbab56e2de473d2d34bb7d86b5665d4ab35 (diff) | |
download | nextcloud-server-6e5191b7021b448a48d741233bd17ab3c222119f.tar.gz nextcloud-server-6e5191b7021b448a48d741233bd17ab3c222119f.zip |
Bump @nextcloud/router from 1.2.0 to 2.0.0
Bumps [@nextcloud/router](https://github.com/nextcloud/nextcloud-router) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/nextcloud/nextcloud-router/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-router/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-router/compare/v1.2.0...v2.0.0)
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/views')
-rw-r--r-- | apps/files_sharing/src/views/SharingInherited.vue | 4 | ||||
-rw-r--r-- | apps/files_sharing/src/views/SharingTab.vue | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index 000710a50d0..1911e05579f 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -128,8 +128,8 @@ export default { async fetchInheritedShares() { this.loading = true try { - const url = generateOcsUrl(`apps/files_sharing/api/v1/shares/inherited?format=json&path=${encodeURIComponent(this.fullPath)}`, 2) - const shares = await axios.get(url.replace(/\/$/, '')) + const url = generateOcsUrl('apps/files_sharing/api/v1/shares/inherited?format=json&path={path}', { path: this.fullPath }) + const shares = await axios.get(url) this.shares = shares.data.ocs.data .map(share => new Share(share)) .sort((a, b) => b.createdTime - a.createdTime) diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index a7f71d27aca..e08ce261522 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -175,7 +175,7 @@ export default { this.loading = true // init params - const shareUrl = generateOcsUrl('apps/files_sharing/api/v1', 2) + 'shares' + const shareUrl = generateOcsUrl('apps/files_sharing/api/v1/shares') const format = 'json' // TODO: replace with proper getFUllpath implementation of our own FileInfo model const path = (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/') |