Skip to content

Commit

Permalink
fix: post to /v1/threads not found
Browse files Browse the repository at this point in the history
Signed-off-by: James <[email protected]>
  • Loading branch information
James committed Mar 22, 2024
1 parent e902d8e commit 6649cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/node/api/restful/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6649cf9

Please sign in to comment.