From 75a6165028877066791e7b7462ed7b1e2eda9e78 Mon Sep 17 00:00:00 2001 From: Nik Sauer Date: Wed, 11 Dec 2024 17:28:38 +0100 Subject: [PATCH] fixed api url in detail.html --- app/templates/workshops/detail.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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]); }