Created
January 28, 2024 23:07
-
-
Save sendbird-community/a631332004063a85a6c8b1ededff37cf 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.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