Skip to content

Commit

Permalink
generateOcsUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasKaminsky committed Dec 12, 2024
1 parent 52d0440 commit 9698728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/RecommendationService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9698728

Please sign in to comment.