From 8234d886f460c29faac7de2b3bd3600a02048972 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@dgerhardt.net> Date: Sat, 7 Jul 2018 23:07:20 +0200 Subject: [PATCH] Remove obsolete test endpoints --- .../arsnova/controller/LoginController.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/main/java/de/thm/arsnova/controller/LoginController.java b/src/main/java/de/thm/arsnova/controller/LoginController.java index a000493be..27a886cf0 100644 --- a/src/main/java/de/thm/arsnova/controller/LoginController.java +++ b/src/main/java/de/thm/arsnova/controller/LoginController.java @@ -427,34 +427,4 @@ public class LoginController extends AbstractController { 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; - } } -- GitLab