Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created January 28, 2024 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/a631332004063a85a6c8b1ededff37cf to your computer and use it in GitHub Desktop.
Save sendbird-community/a631332004063a85a6c8b1ededff37cf to your computer and use it in GitHub Desktop.
app.post("/drama", async (req, res) => {
let dramaText = ""
try {
dramaText = insertRandomBanana(req.query.text) || insertRandomBanana(req.body.text)
} catch (e) {
console.log(e)
}
res.status(200).send(dramaText)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment