untitled notebook

node v4.9.1
version: 1.0.0
endpointsharetweet
var tonicExpress = require("notebook")("tonic/express-endpoint/1.0.0") // Just provide the exports object to the tonicExpress helper var app = tonicExpress(module.exports) var bodyParser = require('body-parser'); var jsonParser = bodyParser.json(); // Handling Webhooks app.post("/webhook", jsonParser, (req, res) => { // Retrieve the request's body and parse it as JSON //var postData = JSON.parse(req.body); console.log("hey!"); console.log(req.body); res.send(200); });
Loading…

no comments

    sign in to comment