fix: post to /v1/threads not found (#2455)

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
This commit is contained in:
NamH 2024-03-22 12:41:51 +07:00 committed by GitHub
parent c2f6330daf
commit 6dd26f6a4b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,7 @@ export const commonRouter = async (app: HttpServer) => {
})
// Threads
app.post(`/threads/`, async (req, res) => createThread(req.body))
app.post(`/threads`, async (req, res) => createThread(req.body))
app.get(`/threads/:threadId/messages`, async (req, res) =>
getMessages(req.params.threadId).then(normalizeData)