Fix pour ajouter en base les nouveaux sauts

+ affichage plus complet des sauts
This commit is contained in:
Sébastien André
2019-11-19 17:47:40 +01:00
parent 52a3280719
commit fb2699f974
5 changed files with 27 additions and 10 deletions

View File

@@ -25,10 +25,9 @@ export class ServiceApiGet {
constructor(private http: HttpClient) { }
public getListOfDropZones(): Observable<Array<DropZoneResp>> {
return this.http
.get<Array<DropZoneResp>>(`${environment.urlApi}/api/DropZone`, {
headers: this.headers
})
return this.http.get<Array<DropZoneResp>>(`${environment.urlApi}/api/DropZone`, {
headers: this.headers
})
.pipe(
map(response => {
const details = response.map(data => new DropZoneResp(data));

View File

@@ -84,11 +84,11 @@ export class ServiceApiPost {
jumpDate: jumpDate
};
console.log(bodyNewjump.jumpDate);
// this.http.post('http://localhost:5000/api/Jump',
// bodyNewjump,
// { headers: this.headers })
// .subscribe(data => console.log(data));
// console.log(bodyNewjump.jumpDate);
this.http.post(`${environment.urlApi}/api/Jump`,
bodyNewjump,
{ headers: this.headers })
.subscribe(data => console.log(data));
}
}
}