Created
January 12, 2024 02:06
-
-
Save sendbird-community/bf9290e2455e97ea8e8b1ee87894e0b0 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("/hand_off", async(req, res) => { | |
console.log(req.body) | |
const channelUrl = req.body.channel_url | |
try { | |
res.status(200).send({"message":"handing over to a human. Just a minute please."}) | |
} catch (e){ | |
res.status(400).send({"error":true, "message":"Failed to perform hand over"}) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment