store/cockpit: fix URLs when using basequery

The new base query adds the common parts of the path already.
This commit is contained in:
Sanne Raymaekers 2025-02-03 17:07:19 +01:00
parent fea03a8c72
commit 2b5982fdfe

View file

@ -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();