SeatSelection page
This commit is contained in:
1 parent
519fa210e9
commit
a676ce3d86
22 files changed
+316
-76
No files matched your search
@@ -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