Skip to content

Instantly share code, notes, and snippets.

@amitbend
amitbend / proxy.js
Created August 15, 2018 18:45
Proxy example for botframework botbuilder (node)
const request = require('request');
server.get('/fw',(req,res)=>{
let query = req.query
if (query['hub.verify_token'] === '<yourverifytoken>') {
return res.end(query['hub.challenge'])
}
return res.end('Error, wrong validation token')
})