Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이유혁
/
OSS_Project_Chatbot
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
이유혁
2019-11-16 14:35:08 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84637e5f6b8040db70c2994aa00238618ec341ea
84637e5f
1 parent
3cec1995
Environment setting finished:EC2 server, DNS routing
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
app.js
package.json
app.js
View file @
84637e5
...
...
@@ -29,6 +29,11 @@ const client = new line.Client(config);
// create Express app
// about Express itself: https://expressjs.com/
// test
app
.
get
(
'/get'
,
(
req
,
res
)
=>
{
res
.
send
(
'hello'
);
})
// register a webhook handler with middleware
// about the middleware, please refer to doc
app
.
post
(
'/webhook'
,
line
.
middleware
(
config
),
(
req
,
res
)
=>
{
...
...
package.json
View file @
84637e5
...
...
@@ -5,9 +5,9 @@
"main"
:
"app.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"node
server
.js"
"start"
:
"node
app
.js"
},
"author"
:
"
강수인
"
,
"author"
:
"
이유혁
"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"@line/bot-sdk"
:
"^6.8.3"
,
...
...
Please
register
or
login
to post a comment