From b301008c3fb92e8541b5c8083091305a7ab1af81 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Mon, 22 May 2023 13:47:22 +0200 Subject: [PATCH] Prepared mock for new addresses --- Frontend/assets/scripts/tools/mock/uianimation.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Frontend/assets/scripts/tools/mock/uianimation.js b/Frontend/assets/scripts/tools/mock/uianimation.js index 7340b83..44dd8e4 100644 --- a/Frontend/assets/scripts/tools/mock/uianimation.js +++ b/Frontend/assets/scripts/tools/mock/uianimation.js @@ -78,7 +78,9 @@ function showHeadersHistory(element){ } async function formatJSON(json) { - const address = window.location.protocol + "//" + window.location.hostname + ":" + 8081 + "/json/formatting"; + const backend = "java"; + const address = window.location.protocol + "//" + window.location.hostname + "/" + backend + "/json/formatting"; + console.log("formatJSON"); var init = { body: json, @@ -98,7 +100,9 @@ async function formatJSON(json) { } async function formatXML(xml) { - const address = window.location.protocol + "//" + window.location.hostname + ":" + 8082 + "/prettify"; + const backend = "libxml"; + const address = window.location.protocol + "//" + window.location.hostname + "/" + backend + "/prettify"; + console.log("formatXML"); var data = { data: xml, process: "",