Toggle navigation
Toggle navigation
This project
Loading...
Sign in
윤창신
/
searchGuide
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
bluejoyq
2019-11-22 18:18:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
42b71450070ba70f911ba88c93bfe5628b18bffd
42b71450
1 parent
1ed1be74
hide server link
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
searchGuide/lib/api.js
searchGuide/lib/api.js
View file @
42b7145
const
axios
=
require
(
'axios'
)
import
filter
from
'./filter'
;
import
{
SERVER_URL
}
from
'react-native-dotenv'
;
export
const
sendSearch
=
async
(
searchText
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
...
@@ -12,7 +13,7 @@ export const sendSearch = async(searchText) => {
"Accept"
:
"application/json"
,
"Content-Type"
:
"application/json"
,
},
url
:
'http://34.84.91.190:80/api/cliConnection'
,
url
:
SERVER_URL
,
data
:
{
data
:{
text
:
searchText
.
replace
(
/
\s{1,}
/g
,
' '
)
...
...
Please
register
or
login
to post a comment