refactor(core): Create controller for binary data (no-changelog) (#7363)

This PR adds a controller for binary data + integration tests.
This commit is contained in:
Iván Ovejero
2023-10-06 16:21:13 +02:00
committed by GitHub
parent 63e11e4be9
commit 34bda535e6
9 changed files with 217 additions and 53 deletions

View File

@@ -1393,7 +1393,7 @@ export const useWorkflowsStore = defineStore(STORES.WORKFLOWS, {
const rootStore = useRootStore();
let restUrl = rootStore.getRestUrl;
if (restUrl.startsWith('/')) restUrl = window.location.origin + restUrl;
const url = new URL(`${restUrl}/data`);
const url = new URL(`${restUrl}/binary-data`);
url.searchParams.append('id', binaryDataId);
url.searchParams.append('action', action);
if (fileName) url.searchParams.append('fileName', fileName);