은승우

Update app.js

Showing 1 changed file with 1 additions and 0 deletions
...@@ -50,6 +50,7 @@ const client = new line.Client(config); ...@@ -50,6 +50,7 @@ const client = new line.Client(config);
50 // register a webhook handler with middleware 50 // register a webhook handler with middleware
51 // about the middleware, please refer to doc 51 // about the middleware, please refer to doc
52 app.post('/webhook', line.middleware(config), (req, res) => { 52 app.post('/webhook', line.middleware(config), (req, res) => {
53 +console.log(res.statusCode);
53 console.log("webhook"); 54 console.log("webhook");
54 Promise 55 Promise
55 .all(req.body.events.map(handleEvent)) 56 .all(req.body.events.map(handleEvent))
......