bluejoyq

hide server link

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,' ')
......