1
0
forked from PGL/Clyde

added ResearchProfile to Apps (to be changed)

This commit is contained in:
2024-04-17 12:40:52 +02:00
parent 5c0dfa3596
commit d4c442c64a
4 changed files with 7 additions and 2 deletions

View File

@ -12,9 +12,10 @@ export async function fetchStats(id){
return restGet("/stats/" +id)
}
export async function addView(url){
return restPost("/addView/" +url)
return restPost("/addview/" +url)
}
export async function getFile(url){
return restGet("/" + 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"})
}