From 0b6c8a5977dda81e670ac844c2aa6f290ff6efed Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 24 Mar 2013 15:03:19 -0300 Subject: [PATCH] Add purge action. --- .../src/main/java/com/wisemapping/rest/AdminController.java | 2 +- wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@ +