Improve filterBar on eventsPage, improve API access from frontend

This commit is contained in:
2024-10-03 19:56:44 +02:00
parent 14766fb39b
commit 67ed71858c
27 changed files with 170 additions and 164 deletions

View File

@@ -6,6 +6,6 @@ export class EventModel {
name: string
offered: boolean
image: string
band: BandModel
concerts: Array<ConcertModel>
band: BandModel = new BandModel()
concerts: Array<ConcertModel> = [ new ConcertModel() ]
}

View File

@@ -2,15 +2,21 @@
* Replica of the API endpoint /cities
*/
export class CityModel {
id: number
name: string
country: string
image: string
id: number = -1
name: string = ""
country: string = ""
image: string = ""
locations: Array<{
id: number
name: string
address: string
image: string
nrOfConcerts: number
}>
}> = [{
id: -1,
name: "",
address: "",
image: "",
nrOfConcerts: 0
}]
}