This commit is contained in:
Dax Raad
2025-05-26 18:10:10 -04:00
parent f26873f5de
commit 94f35130f7

View File

@@ -117,9 +117,17 @@ export namespace Server {
}, },
}, },
}), }),
zValidator(
"json",
z.object({
sessionID: z.string(),
}),
),
async (c) => { async (c) => {
const session = await Session.create(); const messages = await Session.messages(
return c.json(session); c.req.valid("json").sessionID,
);
return c.json(messages);
}, },
) )
.post( .post(