From c792f79f7844205b8912a9499525ae7708bd8266 Mon Sep 17 00:00:00 2001 From: Van-Nice Date: Thu, 27 Jun 2024 15:52:55 -0600 Subject: [PATCH] Remove trailing slash from backend url --- scripts/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/script.js b/scripts/script.js index 67c37a6..37fa8ff 100644 --- a/scripts/script.js +++ b/scripts/script.js @@ -1,7 +1,7 @@ import { updateWeather } from './weather.js'; import { updateTime } from './timeDate.js'; -const API_BASE_URL = 'https://weather-app-server-d5459d7e5648.herokuapp.com/'; +const API_BASE_URL = 'https://weather-app-server-d5459d7e5648.herokuapp.com'; async function startWeather(latitude, longitude) { try { const response = await fetch(`${API_BASE_URL}/start-weather-data?coords=${latitude},${longitude}`);