Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍예림
/
emergency_room_ChatBot
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
김시환
2022-11-16 13:10:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4bc2769a2228aafc2f358ec9671f5b7cc3905b30
4bc2769a
1 parent
7c9fe0f7
update domain
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
42 deletions
app.js
reply_app.js
app.js
deleted
100644 → 0
View file @
7c9fe0f
const
express
=
require
(
'express'
);
const
app
=
express
();
app
.
use
(
express
.
urlencoded
({
extended
:
false
}));
app
.
use
(
express
.
json
());
app
.
get
(
''
,(
req
,
res
)
=>
{
res
.
send
(
'tset'
)
})
app
.
get
(
'/keyboard'
,
(
req
,
res
)
=>
{
const
data
=
{
'type'
:
'text'
}
res
.
json
(
data
);
});
app
.
post
(
'/message'
,
(
req
,
res
)
=>
{
const
question
=
req
.
body
.
userRequest
.
utterance
;
const
goMain
=
'처음으로'
;
if
(
question
===
'테스트'
)
{
const
data
=
{
'version'
:
'2.0'
,
'template'
:
{
'outputs'
:
[{
'simpleText'
:
{
'text'
:
'테스트'
}
}],
'quickReplies'
:
[{
'label'
:
goMain
,
'action'
:
'message'
,
'messageText'
:
goMain
}]
}
}
}
res
.
json
(
data
);
});
app
.
listen
(
3000
,
()
=>
console
.
log
(
'node on 3000'
));
\ No newline at end of file
reply_app.js
View file @
4bc2769
...
...
@@ -5,7 +5,7 @@ const TOKEN = '채널 토큰으로 변경'
const
fs
=
require
(
'fs'
);
const
path
=
require
(
'path'
);
const
HTTPS
=
require
(
'https'
);
const
domain
=
"
도메인 변경
"
const
domain
=
"
ec2-13-57-178-27.us-west-1.compute.amazonaws.com
"
const
sslport
=
23023
;
const
bodyParser
=
require
(
'body-parser'
);
var
app
=
express
();
...
...
Please
register
or
login
to post a comment