diff --git a/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue b/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue index fcc690eb2..8b7817c9f 100644 --- a/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue +++ b/src/components/AppNavigation/CalendarList/CalendarListItemSharingSearch.vue @@ -186,7 +186,7 @@ export default { async findShareesFromCircles(query, hiddenPrincipals, hiddenUrls) { let results try { - results = await HttpClient.get(generateOcsUrl('apps/files_sharing/api/v1') + 'sharees', { + results = await HttpClient.get(generateOcsUrl('apps/files_sharing/api/v1/') + 'sharees', { params: { format: 'json', search: query, diff --git a/src/services/talkService.js b/src/services/talkService.js index 682523621..fe885ba23 100644 --- a/src/services/talkService.js +++ b/src/services/talkService.js @@ -33,7 +33,7 @@ import { generateUrl, generateOcsUrl } from '@nextcloud/router' export async function createTalkRoom(eventTitle = null) { let response try { - response = await HTTPClient.post(generateOcsUrl('apps/spreed/api/v1', 2) + `room`, { + response = await HTTPClient.post(generateOcsUrl('apps/spreed/api/v1/', 2) + `room`, { roomType: 3, roomName: eventTitle || t('calendar', 'Chat room for event'), }) @@ -44,6 +44,7 @@ export async function createTalkRoom(eventTitle = null) { return generateURLForToken(token) } catch (error) { console.debug(error) + throw error } }