edit and delete with error

This commit is contained in:
2023-05-07 12:03:04 +02:00
parent 17a130f1c8
commit ccdd691ec6
3 changed files with 48 additions and 15 deletions

View File

@@ -29,11 +29,11 @@ export class LocationService {
}
updateLocation(location: LocationEntity) {
return this.http.put<LocationEntity>(LOCATION, location);
return this.http.put<LocationEntity>(LOCATION+"/"+location.location, location);
}
deleteLocation(id: number) {
return this.http.delete<LocationEntity>(LOCATION + id);
deleteLocation(location: string) {
return this.http.delete<LocationEntity>(LOCATION +"/"+ location);
}
}