From 0496c0e4e1e5d88df593916a302308e0640456b7 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Fri, 3 Oct 2025 14:32:32 +0200
Subject: Update /imgs/ endpoint in client

---
 src/components/Geshem.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/Geshem.tsx')

diff --git a/src/components/Geshem.tsx b/src/components/Geshem.tsx
index 982d841..387a8bd 100644
--- a/src/components/Geshem.tsx
+++ b/src/components/Geshem.tsx
@@ -21,9 +21,9 @@ export function Geshem({ date }: GeshemProps) {
 
   useEffect(() => {
     const fetchImages = async () =>
-      fetch(`${IMAGES_BASE_URL}/imgs.json`)
+      fetch(`${IMAGES_BASE_URL}/imgs/`)
         .then(res => res.json())
-        .then(imgs => (imgs as any)["280"])
+        .then(data => data.images.map((img: any) => img.path))
         .then(setImages);
 
     const buildPlayback = async () => {
@@ -36,7 +36,7 @@ export function Geshem({ date }: GeshemProps) {
       );
       const paths = hours.reduce<string[]>(
         (acc, h) =>
-          acc.concat(minutes.map(m => `imgs/${date}/${h}${m}/280.png`)),
+          acc.concat(minutes.map(m => `imgs/${date}/${h}${m}/gis.png`)),
         []
       );
       setImages(paths);
-- 
cgit v1.3.1

