From f7696b22de5dc2084e9cee1638b3c80a19aab2f3 Mon Sep 17 00:00:00 2001 From: Bo Zhao Date: Thu, 16 Nov 2023 13:39:02 -0800 Subject: [PATCH] Update index.html --- docs/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 21b88df..8a04610 100644 --- a/docs/index.html +++ b/docs/index.html @@ -102,7 +102,7 @@

Bo Zhao | University of Washington

// Fetch existing records when the window is loaded window.addEventListener("load", async function () { - let response = await fetch('https://participatory-mapping-70cdde6a8df5.herokuapp.com/api/get-record', { + let response = await fetch('https://geog328-1d351b8a161c.herokuapp.com/api/get-record', { method: 'GET' }); @@ -203,7 +203,7 @@

Bo Zhao | University of Washington

try { // Send the POST request to add the new record - await fetch('https://participatory-mapping-70cdde6a8df5.herokuapp.com/api/add-record', settings); + await fetch('https://geog328-1d351b8a161c.herokuapp.com/api/add-record', settings); } catch (err) { // Handle any errors that occur during the request console.error(err);