Se suben eventos a la BD, asociados a la discoteca del usuario

This commit is contained in:
2021-03-20 13:21:50 +01:00
parent f6756c25a8
commit 4b2d8cf7b6
8 changed files with 102 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ import { User } from '../interfaces/user';
import { Discoteca } from '../discoteca';
import { UserLogin } from '../interfaces/user-login';
import { DiscotecaI } from '../interfaces/discoteca-i';
import { Eventoi } from '../interfaces/eventoi';
@Injectable({
@@ -32,6 +33,12 @@ export class ApiService {
}
postEvento(eventoInterface: Eventoi): Observable<Eventoi>{
return this.http.post<Eventoi>(this.baseUrl+"/evento", eventoInterface);
}