Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김대욱
/
trans
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
김대욱
2020-11-27 20:45:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f5442bee1e7abe7da1cb0c56158f6b7c8a39adc5
f5442bee
1 parent
feeecf13
shit2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
app.js
app.js
View file @
f5442be
...
...
@@ -14,11 +14,10 @@ const bodyParser = require('body-parser');
var
app
=
express
();
app
.
use
(
bodyParser
.
json
());
var
cmd
;
app
.
get
(
'/hook'
,
function
(
req
,
res
)
{
var
eventObj
=
req
.
body
.
events
[
0
];
var
message
=
eventObj
.
message
;
cmd
=
message
.
text
;
var
cmd
=
message
.
text
;
});
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
...
...
Please
register
or
login
to post a comment