fix api rest for get user by email, email was trimmed

This commit is contained in:
Ezequiel Bergamaschi 2015-08-26 23:38:41 -03:00
parent 7e440fb9de
commit 070815c95c

View File

@ -72,7 +72,7 @@ public class AdminController extends BaseController {
}
@ApiOperation("Note: Administration permissions required.")
@RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email}", produces = {"application/json", "application/xml"})
@RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email:.+}", produces = {"application/json", "application/xml"})
@ResponseBody
public RestUser getUserByEmail(@PathVariable String email) throws IOException {
final User user = userService.getUserBy(email);