Fix pour ajouter en base les nouveaux sauts
+ affichage plus complet des sauts
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user