이유혁

Test finished, health checker fixed

Showing 1 changed file with 6 additions and 5 deletions
...@@ -14,8 +14,8 @@ var languagedetect_api_url = 'https://openapi.naver.com/v1/papago/detectLangs'; ...@@ -14,8 +14,8 @@ var languagedetect_api_url = 'https://openapi.naver.com/v1/papago/detectLangs';
14 14
15 // Naver Auth Key 15 // Naver Auth Key
16 //새로 발급받은 naver papago api id, pw 입력 16 //새로 발급받은 naver papago api id, pw 입력
17 -var client_id = 'xZMx34y7uru1v8lywZ2d'; 17 +var client_id = '743DE__EstcaLZzEsO5f';
18 -var client_secret = 'p6L7M7WsH9'; 18 +var client_secret = 'Y865wTpZ5y';
19 19
20 const config = { 20 const config = {
21 channelAccessToken: 'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU=', 21 channelAccessToken: 'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU=',
...@@ -29,10 +29,11 @@ const client = new line.Client(config); ...@@ -29,10 +29,11 @@ const client = new line.Client(config);
29 // create Express app 29 // create Express app
30 // about Express itself: https://expressjs.com/ 30 // about Express itself: https://expressjs.com/
31 31
32 -// test 32 +// ELB health checker
33 app.get('/', (req, res) => { 33 app.get('/', (req, res) => {
34 - console.log('hello'); 34 + console.log('hello,,,,');
35 - res.status(200); 35 + res.writeHead(200, { "Content-Type": "text/html" });
36 + res.end();
36 }); 37 });
37 38
38 // register a webhook handler with middleware 39 // register a webhook handler with middleware
......