diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java index 7b95f286..8a975724 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java @@ -131,7 +131,7 @@ public class AdminController extends BaseController { userService.deleteUser(user); } - @RequestMapping(method = RequestMethod.GET, value = "admin/db/purge", consumes = {"text/plain"}) + @RequestMapping(method = RequestMethod.GET, value = "admin/database/purge") @ResponseStatus(value = HttpStatus.NO_CONTENT) public void purgeDB(@RequestParam(required = true) int max) throws UnsupportedEncodingException, WiseMappingException { diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml index 9ffe53e5..a9367276 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -43,6 +43,7 @@ +