From d73c104543275bc4f258b94926fcf5e717f85e07 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 10 Apr 2015 00:07:40 -0300 Subject: [PATCH] Minor fix to unify paths. --- .../src/main/java/com/wisemapping/rest/AccountController.java | 2 +- .../src/main/java/com/wisemapping/rest/MindmapController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AccountController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AccountController.java index e20a9c0e..847819c6 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AccountController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AccountController.java @@ -125,7 +125,7 @@ public class AccountController extends BaseController { @ApiIgnore - @RequestMapping(method = RequestMethod.POST, value = "logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"}) + @RequestMapping(method = RequestMethod.POST, value = "/logger/editor", consumes = {"application/xml", "application/json"}, produces = {"application/json", "text/html", "application/xml"}) @ResponseStatus(value = HttpStatus.NO_CONTENT) public void logError(@RequestBody RestLogItem item, @NotNull HttpServletRequest request) { final Mindmap mindmap = mindmapService.findMindmapById(item.getMapId()); 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 86f1a816..4c9bbeed 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java @@ -192,7 +192,7 @@ public class MindmapController extends BaseController { return result; } - @RequestMapping(value = "maps/{id}/history/{hid}", method = RequestMethod.POST) + @RequestMapping(value = "/maps/{id}/history/{hid}", method = RequestMethod.POST) @ResponseStatus(value = HttpStatus.NO_CONTENT) public void updateRevertMindmap(@PathVariable int id, @PathVariable String hid) throws WiseMappingException, IOException { final Mindmap mindmap = findMindmapById(id);