From 620093c38ec531b43ea28860a34814f441ccc091 Mon Sep 17 00:00:00 2001 From: Fabian Urner Date: Sat, 6 Jul 2024 10:08:08 +0200 Subject: [PATCH] fix: changes route to /{volunteerId}/contracts/{contractId) --- .../java/dev/urner/volodb/rest/VolunteerRestController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/urner/volodb/rest/VolunteerRestController.java b/src/main/java/dev/urner/volodb/rest/VolunteerRestController.java index 56efff8..2d91de4 100644 --- a/src/main/java/dev/urner/volodb/rest/VolunteerRestController.java +++ b/src/main/java/dev/urner/volodb/rest/VolunteerRestController.java @@ -359,7 +359,7 @@ public List getAllContractModsFromVolo(@PathVariable int v return contractService.findModifications(volunteerId, contractId); } - @PatchMapping("/{volunteerId}/contracts/{contractId}/sickdays") + @PatchMapping("/{volunteerId}/contracts/{contractId}") public Contract patchContractSickDays(@PathVariable int volunteerId, @PathVariable int contractId, @RequestBody Map fields) { return contractService.setSickDays(volunteerId, contractId, fields);