SeatSelection page
This commit is contained in:
@@ -4,4 +4,12 @@ let BASE_URL = "http://localhost:3000/concerts"
|
||||
|
||||
export async function getAllConcerts() {
|
||||
return await axios.get(BASE_URL)
|
||||
}
|
||||
}
|
||||
|
||||
export async function getConcert(id: number) {
|
||||
if (id != undefined) {
|
||||
return await axios.get(BASE_URL + "/" + id)
|
||||
} else {
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user