diff --git a/.gitignore b/.gitignore index 5e35123..970188c 100644 --- a/.gitignore +++ b/.gitignore @@ -44,7 +44,6 @@ jspm_packages # Sensitive Info download_ctrp.sh -ApiServer.js # Large data files data/* diff --git a/search/client/lib/ApiFetch.js b/search/client/lib/ApiFetch.js index c380551..833dac6 100644 --- a/search/client/lib/ApiFetch.js +++ b/search/client/lib/ApiFetch.js @@ -1,20 +1,11 @@ import fetch from 'isomorphic-fetch'; -import ApiServer from './ApiServer'; function ApiFetch(endpointQuery) { - var opt; + const host = "https://clinicaltrialsapi.cancer.gov"; + // const host = "http://localhost:3000"; - if(ApiServer.username && ApiServer.password) { - const token = btoa(`${ApiServer.username}:${ApiServer.password}`); - opt = { - "headers": { - "Authorization": `Basic ${token}` - } - }; - } - - return fetch(`${ApiServer.host}/${endpointQuery}`, opt); + return fetch(`${host}/${endpointQuery}`); };