이유혁

Environment setting finished:EC2 server, DNS routing

......@@ -29,6 +29,11 @@ const client = new line.Client(config);
// create Express app
// about Express itself: https://expressjs.com/
// test
app.get('/get', (req, res)=> {
res.send('hello');
})
// register a webhook handler with middleware
// about the middleware, please refer to doc
app.post('/webhook', line.middleware(config), (req, res) => {
......
......@@ -5,9 +5,9 @@
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
"start": "node app.js"
},
"author": "강수인",
"author": "이유혁",
"license": "MIT",
"dependencies": {
"@line/bot-sdk": "^6.8.3",
......