Prepared mock for new addresses

This commit is contained in:
2023-05-22 13:47:22 +02:00
parent d7b4c8d904
commit b301008c3f

View File

@@ -78,7 +78,9 @@ function showHeadersHistory(element){
} }
async function formatJSON(json) { 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 = { var init = {
body: json, body: json,
@@ -98,7 +100,9 @@ async function formatJSON(json) {
} }
async function formatXML(xml) { 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 = { var data = {
data: xml, data: xml,
process: "", process: "",