Showing
2 changed files
with
7 additions
and
2 deletions
| ... | @@ -29,6 +29,11 @@ const client = new line.Client(config); | ... | @@ -29,6 +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 | ||
| 33 | +app.get('/get', (req, res)=> { | ||
| 34 | + res.send('hello'); | ||
| 35 | +}) | ||
| 36 | + | ||
| 32 | // register a webhook handler with middleware | 37 | // register a webhook handler with middleware |
| 33 | // about the middleware, please refer to doc | 38 | // about the middleware, please refer to doc |
| 34 | app.post('/webhook', line.middleware(config), (req, res) => { | 39 | app.post('/webhook', line.middleware(config), (req, res) => { | ... | ... |
| ... | @@ -5,9 +5,9 @@ | ... | @@ -5,9 +5,9 @@ |
| 5 | "main": "app.js", | 5 | "main": "app.js", |
| 6 | "scripts": { | 6 | "scripts": { |
| 7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
| 8 | - "start": "node server.js" | 8 | + "start": "node app.js" |
| 9 | }, | 9 | }, |
| 10 | - "author": "강수인", | 10 | + "author": "이유혁", |
| 11 | "license": "MIT", | 11 | "license": "MIT", |
| 12 | "dependencies": { | 12 | "dependencies": { |
| 13 | "@line/bot-sdk": "^6.8.3", | 13 | "@line/bot-sdk": "^6.8.3", | ... | ... |
-
Please register or login to post a comment