convo selection handling in progress

This commit is contained in:
Danny Avila 2023-02-06 16:28:50 -05:00
parent c794287ced
commit d35ed31b20
5 changed files with 32 additions and 10 deletions

View file

@ -25,6 +25,10 @@ app.get('/convos', async (req, res) => {
res.status(200).send(await getConversations());
});
app.get('/messages', async (req, res) => {
res.status(200).send(await getConversations());
});
app.post('/ask', async (req, res) => {
console.log(req.body);
const { text, parentMessageId, conversationId } = req.body;