diff --git a/app/templates/workshops/detail.html b/app/templates/workshops/detail.html index 2996e84..b497ff8 100644 --- a/app/templates/workshops/detail.html +++ b/app/templates/workshops/detail.html @@ -146,13 +146,15 @@

{{ workshop.title }}

var points; async function fetchMarkerData() { - const response = await fetch("/api/workshop/data/{{ workshop.name }}/"); + const fetch_url = "/api/v1/workshops/{{ workshop.name }}/data/"; + console.log(fetch_url); + const response = await fetch(fetch_url); points = []; // Parse response JSON const text = await response.text(); - const json = JSON.parse(text);; + const json = JSON.parse(text); for (let item in json) { points.push(json[item]); }