From 35e92304c5eb30985c25442a0a529edde4a721d2 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sat, 19 Oct 2024 16:19:02 -0500 Subject: [PATCH] Fix Culvers FOTD URL --- layers/chains/culvers/layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/chains/culvers/layer.js b/layers/chains/culvers/layer.js index 75a076c..96b5560 100644 --- a/layers/chains/culvers/layer.js +++ b/layers/chains/culvers/layer.js @@ -35,7 +35,7 @@ vectorLayer.customPopupCallback = async function(feature) { fotd_parent.append(fotd_child, fotd_image); const [long, lat] = toLonLat(feature.getGeometry().getCoordinates()); - const res = await fetch(`https://corsproxy.io/?${encodeURIComponent(`https://www.culvers.com/api/restaurants/getLocations?lat=${lat}&long=${long}&limit=1&t=${Date.now()}`)}`) + const res = await fetch(`https://corsproxy.io/?${encodeURIComponent(`https://www.culvers.com/api/locator/getLocations?lat=${lat}&long=${long}&limit=1&t=${Date.now()}`)}`) const res_data = await res.json(); fotd_child.innerHTML = res_data.data.geofences[0].metadata.flavorOfDayName; fotd_image.src = `https://cdn.culvers.com/menu-item-detail/${res_data.data.geofences[0].metadata.flavorOfDaySlug}`;