More skelton loader, add optional parameters to /locations and /events
This commit is contained in:
@@ -7,5 +7,11 @@ export async function fetchEvents(city: string = "", genre: string = "") {
|
||||
url += (city.length > 0) ? "city=" + city + "&" : ""
|
||||
url += (genre.length > 0) ? "genre=" + genre : ""
|
||||
|
||||
return await axios.get(url)
|
||||
}
|
||||
|
||||
export async function getTopEvents(nrOfEvents) {
|
||||
let url = BASE_URL + "?sort=desc&count=" + nrOfEvents
|
||||
|
||||
return await axios.get(url)
|
||||
}
|
||||
Reference in New Issue
Block a user