Add purge action.

This commit is contained in:
Paulo Gustavo Veiga
2013-03-24 15:03:19 -03:00
parent 811cc8a668
commit 0b6c8a5977
2 changed files with 2 additions and 1 deletions

View File

@@ -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 {