Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2_open_source_sw_development_Han
/
Jaksimsamil
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
JaeHyeok Song
2020-12-09 03:45:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bee56a6da63c3336acecb8ddb1832a2324e49411
bee56a6d
1 parent
a9ebd59d
replace express into koa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
jaksimsamil-server/src/api/line/app.js
jaksimsamil-server/src/api/line/app.js
View file @
bee56a6
const
lineCtrl
=
require
(
"./line.ctrl"
);
var
express
=
require
(
'express
'
);
var
Koa
=
require
(
'koa
'
);
const
request
=
require
(
'request'
);
const
TARGET_URL
=
'https://api.line.me/v2/bot/message/reply'
const
TOKEN
=
'tdN03DyXDAcKGZsuiPndaU7UC2GzuEQYUhPCkDnGWXGGdiPmV15QYbFU1U5JP5EpiETIKLqOmci/RxFZTfD7FRMED0OpT+3qgEYBNf8T9/jRzHRm7rblBLtzFBVOeXeYRcluOsz4koE4JaAJaUtMtwdB04t89/1O/w1cDnyilFU='
...
...
@@ -12,7 +12,7 @@ const domain = "www.osstest17.ml"
const
sslport
=
23023
;
const
bodyParser
=
require
(
'body-parser'
);
var
app
=
express
();
var
app
=
new
Koa
();
app
.
use
(
bodyParser
.
json
());
let
username
;
//username 저장
app
.
post
(
'/hook'
,
function
(
req
,
res
)
{
...
...
Please
register
or
login
to post a comment