Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created May 18, 2024 17:20
Show Gist options
  • Save christopherbauer/ca135ed3b63fe7047bd488d418d9c094 to your computer and use it in GitHub Desktop.
Save christopherbauer/ca135ed3b63fe7047bd488d418d9c094 to your computer and use it in GitHub Desktop.
app.route("/conversation/:id")
.get(async (req, res) => {
//get a conversation
const { id } = req.params;
const response = await inMemoryDB.getConversation(id);
res.status(200).send(response);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment