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-02 14:05:34 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a09cfa3c938c7586f96a6e8e54a910fa00e10291
a09cfa3c
1 parent
20449ae1
Update app.js
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
app.js
app.js
View file @
a09cfa3
...
...
@@ -50,6 +50,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
)
=>
{
console
.
log
(
res
.
statusCode
);
console
.
log
(
"webhook"
);
Promise
.
all
(
req
.
body
.
events
.
map
(
handleEvent
))
...
...
Please
register
or
login
to post a comment