summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-10-03 14:32:32 +0200
committerYuval Adam <_@yuv.al>2025-10-03 14:32:32 +0200
commit0496c0e4e1e5d88df593916a302308e0640456b7 (patch)
treeb787157d31553bcab5463951ef7a6e7a34b2e40d
parentb3594e5b7db25e18c8c4e995c488a7dff4fd0a26 (diff)
Update /imgs/ endpoint in client
-rw-r--r--src/components/Geshem.tsx6
1 files changed, 3 insertions, 3 deletions
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);