Skip to content

Commit

Permalink
fixed api url in detail.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Dec 11, 2024
1 parent 696600f commit 75a6165
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/templates/workshops/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,15 @@ <h2>{{ workshop.title }}</h2>
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]);
}
Expand Down

0 comments on commit 75a6165

Please sign in to comment.