diff --git a/src/geovisto_demos/api.tsx b/src/geovisto_demos/api.tsx index 635abcd..3b2d0ed 100644 --- a/src/geovisto_demos/api.tsx +++ b/src/geovisto_demos/api.tsx @@ -1,6 +1,6 @@ export const files = async function fetch_github_files() { - const response = await fetch('http://avi278.pythonanywhere.com/files', { + const response = await fetch('https://avi278.pythonanywhere.com/files', { method: 'GET', headers: { 'Content-Type': 'application/json', @@ -12,7 +12,7 @@ export const files = async function fetch_github_files() { export const datasets_search = async function datasets_search(name) { console.log(name); - const response = await fetch('http://avi278.pythonanywhere.com/search/' + name, { + const response = await fetch('https://avi278.pythonanywhere.com/search/' + name, { method: 'GET', headers: { 'Content-Type': 'application/json', @@ -23,7 +23,7 @@ export const datasets_search = async function datasets_search(name) { } export const datasets_download = async function datasets_download(id) { - const response = await fetch('http://avi278.pythonanywhere.com/download/' + id, { + const response = await fetch('https://avi278.pythonanywhere.com/download/' + id, { method: 'GET', headers: { 'Content-Type': 'application/json', @@ -34,7 +34,7 @@ export const datasets_download = async function datasets_download(id) { } export const file = async function fetch_github_file(path) { - const response = await fetch('http://avi278.pythonanywhere.com/file/' + path, { + const response = await fetch('https://avi278.pythonanywhere.com/file/' + path, { method: 'GET', headers: { 'Content-Type': 'application/json',