dev API moved under /api

This commit is contained in:
Peter Morton 2023-06-30 16:30:10 -05:00
parent 89fe29c162
commit d907f53b7d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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
}`,
{