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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user