From d907f53b7dae95ca94583384bac6027975c70518 Mon Sep 17 00:00:00 2001 From: "Peter.Morton" Date: Fri, 30 Jun 2023 16:30:10 -0500 Subject: [PATCH] dev API moved under /api --- src/views/InteractionsFlowView.vue | 6 +++--- src/views/SearchByReferenceView.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/InteractionsFlowView.vue b/src/views/InteractionsFlowView.vue index 8511879..8c1ee46 100644 --- a/src/views/InteractionsFlowView.vue +++ b/src/views/InteractionsFlowView.vue @@ -19,7 +19,7 @@ function fetchData() { errorMessage.value = null; fetch( - `${import.meta.env.VITE_EO_SERVICES_URL}/interactions-flow?filter=${multiSelected.value}`, + `${import.meta.env.VITE_EO_SERVICES_URL}/api/interactions-flow?filter=${multiSelected.value}`, { credentials: "include", // fetch won't send cookies unless you set credentials } @@ -105,7 +105,7 @@ function generateSankey(data) { .attr("fill", (d) => color(d.category)); // Adds a title on the nodes. - rect.append("title").text((d) => `${d.name}\n${format(d.value)} TWh`); + rect.append("title").text((d) => `${d.name}\n${format(d.value)}`); // Creates the paths that represent the links. const link = svg @@ -152,7 +152,7 @@ function generateSankey(data) { link .append("title") - .text((d) => `${d.source.name} → ${d.target.name}\n${format(d.value)} TWh`); + .text((d) => `${d.source.name} → ${d.target.name}\n${format(d.value)}`); // Adds labels on the nodes. svg diff --git a/src/views/SearchByReferenceView.vue b/src/views/SearchByReferenceView.vue index bee6030..7547459 100644 --- a/src/views/SearchByReferenceView.vue +++ b/src/views/SearchByReferenceView.vue @@ -18,7 +18,7 @@ function fetchData() { errorMessage.value = null; contactData.value = null; fetch( - `${import.meta.env.VITE_EO_SERVICES_URL}/unified-data-gateway?referenceId=${ + `${import.meta.env.VITE_EO_SERVICES_URL}/api/unified-data-gateway?referenceId=${ referenceId.value }`, {