Remove EventModel in frontend

This commit is contained in:
2024-10-12 21:00:42 +02:00
parent 60a9cea147
commit b490d058e4
33 changed files with 313 additions and 377 deletions

View File

@@ -7,11 +7,10 @@ export async function fetchAllLocations() {
}
export async function getLocation(locationName: string) {
console.log(locationName)
return await axios.get(BASE_URL + "/location/" + locationName)
}
export async function getTopLocations(nrOfLocations: number) {
export async function fetchTopLocations(nrOfLocations: number) {
let url = BASE_URL + "?sort=desc&count=" + nrOfLocations
return await axios.get(url)