Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤동주
/
LINEBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
최한솔
2019-12-03 21:57:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
310397d7409c0c458faab87d861d8558b6752eda
310397d7
1 parent
79702b9a
webhook plus
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app.js
app.js
View file @
310397d
...
...
@@ -16,7 +16,7 @@ const client = new line.Client(config);
// register a webhook handler with middleware
// about the middleware, please refer to doc
app
.
post
(
'/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
app
.
post
(
'
https://bots.dialogflow.com/line/d1584d25-0e52-48da-b6cc-20e021dc5e70
/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
Promise
.
all
(
req
.
body
.
events
.
map
(
handleEvent
))
.
then
((
result
)
=>
res
.
json
(
result
))
...
...
Please
register
or
login
to post a comment