From ce758498a1c1212e225b8f03ec80740329147574 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Mon, 6 Feb 2017 00:15:04 +0100 Subject: [PATCH] Retourne quelque chose pour delete --- src/main/java/etunicorn/controller/ConsommationController.java | 2 +- src/main/java/etunicorn/controller/EvenementController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/etunicorn/controller/ConsommationController.java b/src/main/java/etunicorn/controller/ConsommationController.java index 929b760..9138b45 100644 --- a/src/main/java/etunicorn/controller/ConsommationController.java +++ b/src/main/java/etunicorn/controller/ConsommationController.java @@ -80,7 +80,7 @@ public class ConsommationController extends BaseController implements etunicorn. return generateError(HttpStatus.NOT_FOUND, "Consommation inconnue"); } consommationRepository.delete(consommation); - return null; + return new ResponseEntity(HttpStatus.NO_CONTENT); } @Override diff --git a/src/main/java/etunicorn/controller/EvenementController.java b/src/main/java/etunicorn/controller/EvenementController.java index 2919d0c..7d87e2d 100644 --- a/src/main/java/etunicorn/controller/EvenementController.java +++ b/src/main/java/etunicorn/controller/EvenementController.java @@ -92,7 +92,7 @@ public class EvenementController extends BaseController implements etunicorn.gen return generateError(HttpStatus.NOT_FOUND, "Évènement inconnu"); } evenementRepository.delete(evenement); - return null; + return new ResponseEntity(HttpStatus.NO_CONTENT); } @Override -- libgit2 0.21.2