fix(24): add withImageUrls to public setup endpoint
Public setup view was missing image URL enrichment, causing item images to be absent for anonymous visitors. Matches the private endpoint pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user