Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -16,7 +16,7 @@ const client = new line.Client(config); | ... | @@ -16,7 +16,7 @@ const client = new line.Client(config); |
16 | 16 | ||
17 | // register a webhook handler with middleware | 17 | // register a webhook handler with middleware |
18 | // about the middleware, please refer to doc | 18 | // about the middleware, please refer to doc |
19 | -app.post('/webhook', line.middleware(config), (req, res) => { | 19 | +app.post('https://bots.dialogflow.com/line/d1584d25-0e52-48da-b6cc-20e021dc5e70/webhook', line.middleware(config), (req, res) => { |
20 | Promise | 20 | Promise |
21 | .all(req.body.events.map(handleEvent)) | 21 | .all(req.body.events.map(handleEvent)) |
22 | .then((result) => res.json(result)) | 22 | .then((result) => res.json(result)) | ... | ... |
-
Please register or login to post a comment