From 733d8cd145d08afb41824d69ce8a7042d32b21d4 Mon Sep 17 00:00:00 2001 From: Iva Utikalova Date: Fri, 3 May 2024 13:36:29 +0200 Subject: [PATCH] api fix --- src/geovisto_demos/api.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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',