Toggle navigation
Toggle navigation
This project
Loading...
Sign in
진성욱
/
OSS
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
진성욱
2022-05-16 21:55:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4403739dc9ff27d1ddfa858dfba4a9c7397ad679
4403739d
1 parent
6b7cd19a
Delete Codes Generating Errors
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
Experiments/messenger/webhook/app.js
Experiments/messenger/webhook/app.js
View file @
4403739
...
...
@@ -12,14 +12,9 @@ app.use(bodyParser.json());
app
.
post
(
'/hook'
,
function
(
request
,
response
)
{
var
eventObj
=
request
.
body
.
events
[
0
];
var
source
=
eventObj
.
source
;
var
message
=
eventObj
.
message
;
// request log
console
.
log
(
'======================'
,
new
Date
()
,
'======================'
);
console
.
log
(
'[request]'
,
request
.
body
);
console
.
log
(
'[request source] '
,
eventObj
.
source
);
console
.
log
(
'[request message]'
,
eventObj
.
message
);
response
.
sendStatus
(
200
);
});
...
...
Please
register
or
login
to post a comment