Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
John Samuel Ako Deutesfeld
ARSnova Backend
Commits
8234d886
There was an error fetching the commit references. Please try again later.
Commit
8234d886
authored
6 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Remove obsolete test endpoints
parent
66acbda4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/controller/LoginController.java
+0
-30
0 additions, 30 deletions
src/main/java/de/thm/arsnova/controller/LoginController.java
with
0 additions
and
30 deletions
src/main/java/de/thm/arsnova/controller/LoginController.java
+
0
−
30
View file @
8234d886
...
@@ -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
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment