From 969872811f9c0d52bf050f67eee69b63f34e5023 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 12 Dec 2024 09:42:29 +0100 Subject: [PATCH] generateOcsUrl --- src/service/RecommendationService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service/RecommendationService.js b/src/service/RecommendationService.js index 7aab51f9..7d29d881 100644 --- a/src/service/RecommendationService.js +++ b/src/service/RecommendationService.js @@ -3,10 +3,10 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ import Axios from '@nextcloud/axios' -import { generateUrl } from '@nextcloud/router' +import { generateOcsUrl } from '@nextcloud/router' export const fetchRecommendedFiles = (always) => { - const url = generateUrl('/ocs/v2.php/apps/recommendations/api/v1/recommendations' + (always ? '/always' : ''), + const url = generateOcsUrl('apps/recommendations/api/v1/recommendations' + (always ? '/always' : ''), {}, { noRewrite: false }) return Axios.get(url)