Showing
1 changed file
with
2 additions
and
1 deletions
1 | const axios = require('axios') | 1 | const axios = require('axios') |
2 | import filter from './filter'; | 2 | import filter from './filter'; |
3 | +import { SERVER_URL } from 'react-native-dotenv'; | ||
3 | 4 | ||
4 | export const sendSearch = async(searchText) => { | 5 | export const sendSearch = async(searchText) => { |
5 | return new Promise((resolve,reject) => { | 6 | return new Promise((resolve,reject) => { |
... | @@ -12,7 +13,7 @@ export const sendSearch = async(searchText) => { | ... | @@ -12,7 +13,7 @@ export const sendSearch = async(searchText) => { |
12 | "Accept": "application/json", | 13 | "Accept": "application/json", |
13 | "Content-Type": "application/json", | 14 | "Content-Type": "application/json", |
14 | }, | 15 | }, |
15 | - url: 'http://34.84.91.190:80/api/cliConnection', | 16 | + url: SERVER_URL, |
16 | data: { | 17 | data: { |
17 | data:{ | 18 | data:{ |
18 | text: searchText.replace(/\s{1,}/g,' ') | 19 | text: searchText.replace(/\s{1,}/g,' ') | ... | ... |
-
Please register or login to post a comment