This commit is contained in:
2024-04-19 17:13:15 +02:00
parent a168d41aee
commit e998fb2ab4
3 changed files with 36 additions and 30 deletions

View File

@ -29,7 +29,7 @@ export async function fetchAllResearches(){
export async function getFile(url){
const restURL = import.meta.env.VITE_CLYDE_MODE === 'container' ? "http://localhost:8000": import.meta.env.DEV ? "http://localhost:5173" : "https://clyde.herisson.ovh/api"
await fetch(restURL + "/" + url, {method: "GET"})
return await fetch(restURL + "/" + url, {method: "GET"})
}
export async function addView(url){
return restPost("/addview/" + url)