url delete-pref
This commit is contained in:
parent
786d8b23d9
commit
39c546794c
1 changed files with 5 additions and 5 deletions
|
@ -61,11 +61,11 @@ public class PreferenceController {
|
||||||
// return ResponseEntity.status(HttpStatus.OK).body(preferenceRepository.save(personne));
|
// return ResponseEntity.status(HttpStatus.OK).body(preferenceRepository.save(personne));
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @DeleteMapping(value = "/delete-restaurant/{id}")
|
@DeleteMapping("/delete-preference/{idrestau}/{iduser}")
|
||||||
// public void suppressionPerso(@PathVariable int id){
|
public void deletePreferenceById(@PathVariable int iduser, @PathVariable int idrestau ){
|
||||||
//
|
PreferencePK id = new PreferencePK(personneRepository.getById(iduser) ,restaurantRepository.getById(idrestau));
|
||||||
// preferenceRepository.deleteById(id);
|
preferenceRepository.deleteById(id);
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue