이유혁

add ELB target health check code

Showing 1 changed file with 5 additions and 3 deletions
...@@ -30,9 +30,10 @@ const client = new line.Client(config); ...@@ -30,9 +30,10 @@ const client = new line.Client(config);
30 // about Express itself: https://expressjs.com/ 30 // about Express itself: https://expressjs.com/
31 31
32 // test 32 // test
33 -app.get('/get', (req, res)=> { 33 +app.get('/', (req, res) => {
34 - res.send('hello'); 34 + console.log('hello');
35 -}) 35 + res.status(200);
36 +});
36 37
37 // register a webhook handler with middleware 38 // register a webhook handler with middleware
38 // about the middleware, please refer to doc 39 // about the middleware, please refer to doc
...@@ -113,6 +114,7 @@ function handleEvent(event) { ...@@ -113,6 +114,7 @@ function handleEvent(event) {
113 }); 114 });
114 } 115 }
115 116
117 +
116 app.listen(3000, function () { 118 app.listen(3000, function () {
117 console.log('Linebot listening on port 3000!'); 119 console.log('Linebot listening on port 3000!');
118 }); 120 });
......