diff --git a/frontend/src/routes/(app)/evidences/[id=uuid]/attachment/+server.ts b/frontend/src/routes/(app)/evidences/[id=uuid]/attachment/+server.ts index ee1065334..ed87e123c 100644 --- a/frontend/src/routes/(app)/evidences/[id=uuid]/attachment/+server.ts +++ b/frontend/src/routes/(app)/evidences/[id=uuid]/attachment/+server.ts @@ -4,7 +4,7 @@ import { error } from '@sveltejs/kit'; import type { RequestHandler } from './$types'; export const GET: RequestHandler = async ({ fetch, setHeaders, params }) => { - const endpoint = `${BASE_API_URL}/evidences/${params.id}/attachment`; + const endpoint = `${BASE_API_URL}/evidences/${params.id}/attachment/`; try { const attachmentResponse = await fetch(endpoint); diff --git a/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.server.ts b/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.server.ts index 0977f6547..e2c513950 100644 --- a/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.server.ts +++ b/frontend/src/routes/(app)/frameworks/[id=uuid]/+page.server.ts @@ -4,7 +4,7 @@ import { languageTag } from '$paraglide/runtime'; export const load = (async ({ fetch, params }) => { const URLModel = 'frameworks'; - const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/object`; + const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/object/`; const res = await fetch(endpoint, { headers: { @@ -12,7 +12,7 @@ export const load = (async ({ fetch, params }) => { } }); const framework = await res.json(); - const tree = await fetch(`${BASE_API_URL}/${URLModel}/${params.id}/tree`, { + const tree = await fetch(`${BASE_API_URL}/${URLModel}/${params.id}/tree/`, { headers: { 'Accept-Language': languageTag() } diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts b/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts index 91f142aed..6cb5457ca 100644 --- a/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts +++ b/frontend/src/routes/(app)/libraries/[id=urn]/+server.ts @@ -8,7 +8,7 @@ export const GET: RequestHandler = async ({ fetch, url, params }) => { const isLoaded = url.searchParams.has('loaded'); const URLModel = isLoaded ? 'loaded-libraries' : 'stored-libraries'; const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/`; - const contentEndpoint = `${BASE_API_URL}/${URLModel}/${params.id}/content`; + const contentEndpoint = `${BASE_API_URL}/${URLModel}/${params.id}/content/`; const [res, contentRes] = await Promise.all([ fetch(endpoint, { diff --git a/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts b/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts index 830642aba..f8d6777c1 100644 --- a/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts +++ b/frontend/src/routes/(app)/libraries/[id=urn]/tree/+server.ts @@ -6,7 +6,7 @@ import { languageTag } from '$paraglide/runtime'; export const GET: RequestHandler = async ({ fetch, params, url }) => { const URLModel = url.searchParams.has('loaded') ? 'loaded-libraries' : 'stored-libraries'; - const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/tree`; + const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/tree/`; const res = await fetch(endpoint, { headers: { 'Accept-Language': languageTag()