Fix add label.

This commit is contained in:
Paulo Gustavo Veiga 2022-02-09 14:17:28 -08:00
parent 4e45aea3f9
commit 62e009b7e4

View File

@ -580,7 +580,7 @@ public class MindmapController extends BaseController {
@RequestMapping(method = RequestMethod.DELETE, value = "/maps/{id}/labels/{lid)}") @RequestMapping(method = RequestMethod.DELETE, value = "/maps/{id}/labels/{lid)}")
@ResponseStatus(value = HttpStatus.NO_CONTENT) @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 User user = Utils.getUser();
final Mindmap mindmap = findMindmapById(id); final Mindmap mindmap = findMindmapById(id);
final Label label = labelService.findLabelById(lid, user); final Label label = labelService.findLabelById(lid, user);