mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
sync
This commit is contained in:
@@ -117,9 +117,17 @@ export namespace Server {
|
||||
},
|
||||
},
|
||||
}),
|
||||
zValidator(
|
||||
"json",
|
||||
z.object({
|
||||
sessionID: z.string(),
|
||||
}),
|
||||
),
|
||||
async (c) => {
|
||||
const session = await Session.create();
|
||||
return c.json(session);
|
||||
const messages = await Session.messages(
|
||||
c.req.valid("json").sessionID,
|
||||
);
|
||||
return c.json(messages);
|
||||
},
|
||||
)
|
||||
.post(
|
||||
|
||||
Reference in New Issue
Block a user