진성욱

Delete Codes Generating Errors

...@@ -12,14 +12,9 @@ app.use(bodyParser.json()); ...@@ -12,14 +12,9 @@ app.use(bodyParser.json());
12 app.post('/hook', function (request, response) { 12 app.post('/hook', function (request, response) {
13 13
14 var eventObj = request.body.events[0]; 14 var eventObj = request.body.events[0];
15 - var source = eventObj.source;
16 - var message = eventObj.message;
17 15
18 // request log 16 // request log
19 console.log('======================', new Date() ,'======================'); 17 console.log('======================', new Date() ,'======================');
20 - console.log('[request]', request.body);
21 - console.log('[request source] ', eventObj.source);
22 - console.log('[request message]', eventObj.message);
23 18
24 response.sendStatus(200); 19 response.sendStatus(200);
25 }); 20 });
......