From 2b5982fdfebde8d12122efbabe4ecd6c94c3f405 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Mon, 3 Feb 2025 17:07:19 +0100 Subject: [PATCH] store/cockpit: fix URLs when using basequery The new base query adds the common parts of the path already. --- src/store/cockpit/cockpitApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store/cockpit/cockpitApi.ts b/src/store/cockpit/cockpitApi.ts index dd47e31e..08e6009e 100644 --- a/src/store/cockpit/cockpitApi.ts +++ b/src/store/cockpit/cockpitApi.ts @@ -330,7 +330,7 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({ ], }; const composeResp = await baseQuery({ - url: '/api/image-builder-composer/v2/compose', + url: '/compose', method: 'POST', body: composeReq, headers: { @@ -412,7 +412,7 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({ queryFn: async (queryArg, _, __, baseQuery) => { try { const resp = await baseQuery({ - url: `/api/image-builder-composer/v2/composes/${queryArg.composeId}`, + url: `/composes/${queryArg.composeId}`, method: 'GET', }); const blueprintsDir = await getBlueprintsPath();