diff options
| author | Yuval Adam <_@yuv.al> | 2025-10-03 14:32:32 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2025-10-03 14:32:32 +0200 |
| commit | 0496c0e4e1e5d88df593916a302308e0640456b7 (patch) | |
| tree | b787157d31553bcab5463951ef7a6e7a34b2e40d /src/components | |
| parent | b3594e5b7db25e18c8c4e995c488a7dff4fd0a26 (diff) | |
Update /imgs/ endpoint in client
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Geshem.tsx | 6 |
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); |
