Skeleton loader
This commit is contained in:
@@ -6,6 +6,6 @@ export async function getAllBands() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
|
||||
export async function getOneBand(id: number) {
|
||||
return await axios.get(BASE_URL + '/' + id)
|
||||
export async function getBand(bandName: string) {
|
||||
return await axios.get(BASE_URL + '/' + bandName)
|
||||
}
|
||||
@@ -4,4 +4,8 @@ let BASE_URL = "http://localhost:3000/locations"
|
||||
|
||||
export async function getAllLocations() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
|
||||
export async function getLocation(locationName: string) {
|
||||
return await axios.get(BASE_URL + "/" + locationName)
|
||||
}
|
||||
Reference in New Issue
Block a user