Skip to content

Commit

Permalink
api fix
Browse files Browse the repository at this point in the history
  • Loading branch information
avi278 committed May 3, 2024
1 parent f58d128 commit 733d8cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/geovisto_demos/api.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 733d8cd

Please sign in to comment.