dev API moved under /api
This commit is contained in:
parent
89fe29c162
commit
d907f53b7d
@ -19,7 +19,7 @@ function fetchData() {
|
|||||||
errorMessage.value = null;
|
errorMessage.value = null;
|
||||||
|
|
||||||
fetch(
|
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
|
credentials: "include", // fetch won't send cookies unless you set credentials
|
||||||
}
|
}
|
||||||
@ -105,7 +105,7 @@ function generateSankey(data) {
|
|||||||
.attr("fill", (d) => color(d.category));
|
.attr("fill", (d) => color(d.category));
|
||||||
|
|
||||||
// Adds a title on the nodes.
|
// 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.
|
// Creates the paths that represent the links.
|
||||||
const link = svg
|
const link = svg
|
||||||
@ -152,7 +152,7 @@ function generateSankey(data) {
|
|||||||
|
|
||||||
link
|
link
|
||||||
.append("title")
|
.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.
|
// Adds labels on the nodes.
|
||||||
svg
|
svg
|
||||||
|
|||||||
@ -18,7 +18,7 @@ function fetchData() {
|
|||||||
errorMessage.value = null;
|
errorMessage.value = null;
|
||||||
contactData.value = null;
|
contactData.value = null;
|
||||||
fetch(
|
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
|
referenceId.value
|
||||||
}`,
|
}`,
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user