Created
May 18, 2024 17:20
-
-
Save christopherbauer/ca135ed3b63fe7047bd488d418d9c094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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