From e7901891c94df4c5fe5cb669b9428383016ed514 Mon Sep 17 00:00:00 2001 From: casulit Date: Wed, 30 Oct 2024 11:21:29 +0800 Subject: [PATCH] fix(server): Add missing `:id` param in AI description endpoint --- server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.ts b/server.ts index 8fa4f0e..f20fe5c 100644 --- a/server.ts +++ b/server.ts @@ -499,7 +499,7 @@ app.get("/api/properties/cities", async (c: Context) => { }); }); -app.get("/api/properties/generate-ai-description", async (c: Context) => { +app.get("/api/properties/:id/generate-ai-description", async (c: Context) => { using client = await dbPool.connect(); const id = c.req.param("id");