up fetch api route
This commit is contained in:
parent
a2834c1f25
commit
c194862e00
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ class DemoMainResource:
|
||||||
// Function to fetch events from the API
|
// Function to fetch events from the API
|
||||||
function fetchEvents() {
|
function fetchEvents() {
|
||||||
// Fetch events from the API - using the local API endpoint
|
// Fetch events from the API - using the local API endpoint
|
||||||
fetch('/event?')
|
fetch('https://api.openeventdatabase.org/event?')
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
if (data.features && data.features.length > 0) {
|
if (data.features && data.features.length > 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue