From 62e009b7e49d66bae9156932bba2d6b00fb76245 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 9 Feb 2022 14:17:28 -0800 Subject: [PATCH] Fix add label. --- .../src/main/java/com/wisemapping/rest/MindmapController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java index fcfdb8de..6b9f8f30 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java @@ -580,7 +580,7 @@ public class MindmapController extends BaseController { @RequestMapping(method = RequestMethod.DELETE, value = "/maps/{id}/labels/{lid)}") @ResponseStatus(value = HttpStatus.NO_CONTENT) - public void removeLabelFromMap(@PathVariable int id, @RequestBody int lid) throws WiseMappingException { + public void removeLabelFromMap(@PathVariable int id, @PathVariable int lid) throws WiseMappingException { final User user = Utils.getUser(); final Mindmap mindmap = findMindmapById(id); final Label label = labelService.findLabelById(lid, user);