Skip to content

Instantly share code, notes, and snippets.

@bibhuticoder
Created May 30, 2021 16:19
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 bibhuticoder/b4545523112427692880719c04492e19 to your computer and use it in GitHub Desktop.
Save bibhuticoder/b4545523112427692880719c04492e19 to your computer and use it in GitHub Desktop.
const express = require('express')
const app = express()
const port = 3000
const { requestCode, verifyOtp, cancelOtp } = require("./vonage.service.js");
app.post('/api/request-token', (req, res) => {
//...
})
app.post('/api/verify-token', (req, res) => {
//...
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment