Skip to content
Snippets Groups Projects
Commit 8234d886 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Remove obsolete test endpoints

parent 66acbda4
No related merge requests found
...@@ -427,34 +427,4 @@ public class LoginController extends AbstractController { ...@@ -427,34 +427,4 @@ public class LoginController extends AbstractController {
return authList; return authList;
} }
@RequestMapping(value = { "/test/me" }, method = RequestMethod.GET)
@ResponseBody
public User me() {
final User me = userSessionService.getUser();
if (me == null) {
throw new UnauthorizedException();
}
return me;
}
@RequestMapping(value = { "/test/mysession" }, method = RequestMethod.GET)
@ResponseBody
public Session mysession() {
final Session mysession = userSessionService.getSession();
if (mysession == null) {
throw new UnauthorizedException();
}
return mysession;
}
@RequestMapping(value = { "/test/myrole" }, method = RequestMethod.GET)
@ResponseBody
public UserSessionService.Role myrole() {
final UserSessionService.Role myrole = userSessionService.getRole();
if (myrole == null) {
throw new UnauthorizedException();
}
return myrole;
}
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment