Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
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
Paul-Christian Volkmer
ARSnova Backend
Commits
fedac250
Commit
fedac250
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Add alternative route and class documentation to ConfigurationController
parent
75df66b8
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/ConfigurationController.java
+7
-2
7 additions, 2 deletions
...va/de/thm/arsnova/controller/ConfigurationController.java
with
7 additions
and
2 deletions
src/main/java/de/thm/arsnova/controller/ConfigurationController.java
+
7
−
2
View file @
fedac250
...
...
@@ -30,8 +30,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
/**
* The ConfigurationController provides frontend clients with information necessary to correctly interact with the
* backend and other frontends as well as settings for ARSnova. The the alternative /arsnova-config route is necessary
* in case the backend application is deployed as root context.
*/
@Controller
@RequestMapping
(
"/configuration"
)
@RequestMapping
(
{
"/configuration"
,
"/arsnova-config"
}
)
public
class
ConfigurationController
extends
AbstractController
{
@Value
(
"${security.guest.enabled}"
)
private
String
guestEnabled
;
...
...
@@ -78,7 +83,7 @@ public class ConfigurationController extends AbstractController {
@Value
(
"${question.parse-answer-option-formatting:false}"
)
private
String
parseAnswerOptionFormatting
;
@RequestMapping
(
value
=
{
"/"
},
method
=
RequestMethod
.
GET
)
@RequestMapping
(
method
=
RequestMethod
.
GET
)
@ResponseBody
public
final
HashMap
<
String
,
Object
>
getConfiguration
(
HttpServletRequest
request
)
{
HashMap
<
String
,
Object
>
config
=
new
HashMap
<
String
,
Object
>();
...
...
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