diff --git a/src/server/routes/setups.ts b/src/server/routes/setups.ts index 212c870..7828f32 100644 --- a/src/server/routes/setups.ts +++ b/src/server/routes/setups.ts @@ -48,7 +48,8 @@ app.get("/:id/public", async (c) => { if (!id) return c.json({ error: "Invalid setup ID" }, 400); const setup = await getPublicSetupWithItems(db, id); if (!setup) return c.json({ error: "Setup not found" }, 404); - return c.json(setup); + const enrichedItems = await withImageUrls(setup.items); + return c.json({ ...setup, items: enrichedItems }); }); app.get("/:id", async (c) => {