Skip to content
Snippets Groups Projects
Commit 0283deab authored by Karsch Lukas's avatar Karsch Lukas
Browse files

#45 - fix wrong response code in garden controller

parent 21cbdfb0
No related branches found
No related tags found
1 merge request!44resolve #45 - error status code added
Pipeline #57572 passed
...@@ -74,7 +74,7 @@ public class GardenController { ...@@ -74,7 +74,7 @@ public class GardenController {
@AuthenticationPrincipal User user @AuthenticationPrincipal User user
) { ) {
gardenService.removeFromGarden(plantId, user); gardenService.removeFromGarden(plantId, user);
return ResponseEntity.ok(null); return ResponseEntity.status(204).build();
} }
@DeleteMapping("/remove/all") @DeleteMapping("/remove/all")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment