store/cockpit: fix URLs when using basequery
The new base query adds the common parts of the path already.
This commit is contained in:
parent
fea03a8c72
commit
2b5982fdfe
1 changed files with 2 additions and 2 deletions
|
|
@ -330,7 +330,7 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const composeResp = await baseQuery({
|
const composeResp = await baseQuery({
|
||||||
url: '/api/image-builder-composer/v2/compose',
|
url: '/compose',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: composeReq,
|
body: composeReq,
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -412,7 +412,7 @@ export const cockpitApi = contentSourcesApi.injectEndpoints({
|
||||||
queryFn: async (queryArg, _, __, baseQuery) => {
|
queryFn: async (queryArg, _, __, baseQuery) => {
|
||||||
try {
|
try {
|
||||||
const resp = await baseQuery({
|
const resp = await baseQuery({
|
||||||
url: `/api/image-builder-composer/v2/composes/${queryArg.composeId}`,
|
url: `/composes/${queryArg.composeId}`,
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
});
|
});
|
||||||
const blueprintsDir = await getBlueprintsPath();
|
const blueprintsDir = await getBlueprintsPath();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue