Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤준석
/
mamuri-bot
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-05-27 23:06:23 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
68b03db687f7e2dc6db1ced71605df32486b72a2
68b03db6
1 parent
c4ecb629
FIX: server db config and search api url
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
server/chatbot/search/bunjangSearch.js
server/chatbot/search/daangnSearch.js
server/chatbot/search/joongnaSearch.js
server/config/config.json
server/chatbot/search/bunjangSearch.js
View file @
68b03db
...
...
@@ -4,7 +4,7 @@ const bunjangSingleSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18082/api/v2/bunjang/
${
encodeURIComponent
(
`http://
localhost
:18082/api/v2/bunjang/
${
encodeURIComponent
(
keyword
)}
`
)
...
...
@@ -17,7 +17,7 @@ const bunjangMultiSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18082/api/v2/bunjang/
${
encodeURIComponent
(
`http://
localhost
:18082/api/v2/bunjang/
${
encodeURIComponent
(
keyword
)}
`
)
...
...
server/chatbot/search/daangnSearch.js
View file @
68b03db
...
...
@@ -4,7 +4,7 @@ const daangnSingleSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18080/api/v2/daangn/
${
encodeURIComponent
(
keyword
)}
`
`http://
localhost
:18080/api/v2/daangn/
${
encodeURIComponent
(
keyword
)}
`
)
.
then
((
res
)
=>
res
.
data
[
"items"
][
0
])
.
catch
((
e
)
=>
undefined
)
...
...
@@ -15,7 +15,7 @@ const daangnMultiSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18080/api/v2/daangn/
${
encodeURIComponent
(
keyword
)}
`
`http://
localhost
:18080/api/v2/daangn/
${
encodeURIComponent
(
keyword
)}
`
)
.
then
((
res
)
=>
res
.
data
[
"items"
])
.
catch
((
e
)
=>
undefined
)
...
...
server/chatbot/search/joongnaSearch.js
View file @
68b03db
...
...
@@ -4,7 +4,7 @@ const joongnaSingleSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18081/api/v2/joongna/
${
encodeURIComponent
(
`http://
localhost
:18081/api/v2/joongna/
${
encodeURIComponent
(
keyword
)}
`
)
...
...
@@ -17,7 +17,7 @@ const joongnaMultiSearch = (keyword) => {
return
Promise
.
resolve
(
axios
.
get
(
`http://
43.200.35.46
:18081/api/v2/joongna/
${
encodeURIComponent
(
`http://
localhost
:18081/api/v2/joongna/
${
encodeURIComponent
(
keyword
)}
`
)
...
...
server/config/config.json
View file @
68b03db
...
...
@@ -4,6 +4,7 @@
"password"
:
"mamuri"
,
"database"
:
"mamuri_db"
,
"host"
:
"127.0.0.1"
,
"port"
:
"13060"
,
"dialect"
:
"mysql"
},
"test"
:
{
...
...
Please
register
or
login
to post a comment