creado feed component. llamada a la API para descargar todos los eventos
This commit is contained in:
@@ -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});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user