creado feed component. llamada a la API para descargar todos los eventos

This commit is contained in:
2021-04-03 11:43:08 +02:00
parent 6c8af25e4b
commit 139e3fcb8b
10 changed files with 118 additions and 11 deletions

View File

@@ -39,7 +39,13 @@ export class ApiService {
}
getEventos(discotecaID: number): Observable<Eventoi[]>{
getEventos(): Observable<Eventoi[]>{
return this.http.get<Eventoi[]>(this.baseUrl+"/evento");
}
getEventosDiscoteca(discotecaID: number): Observable<Eventoi[]>{
return this.http.post<Eventoi[]>(this.baseUrl+"/eventosDiscoteca", {"id": discotecaID});