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
d5be01fc
Commit
d5be01fc
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Patches
Plain Diff
Return apiPath for /configuration-Requests
parent
e51bf87d
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
+6
-1
6 additions, 1 deletion
...va/de/thm/arsnova/controller/ConfigurationController.java
with
6 additions
and
1 deletion
src/main/java/de/thm/arsnova/controller/ConfigurationController.java
+
6
−
1
View file @
d5be01fc
...
@@ -20,6 +20,8 @@ package de.thm.arsnova.controller;
...
@@ -20,6 +20,8 @@ package de.thm.arsnova.controller;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
javax.servlet.http.HttpServletRequest
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
...
@@ -54,8 +56,11 @@ public class ConfigurationController extends AbstractController {
...
@@ -54,8 +56,11 @@ public class ConfigurationController extends AbstractController {
@RequestMapping
(
value
=
{
"/"
},
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
{
"/"
},
method
=
RequestMethod
.
GET
)
@ResponseBody
@ResponseBody
public
final
HashMap
<
String
,
String
>
getConfiguration
()
{
public
final
HashMap
<
String
,
String
>
getConfiguration
(
HttpServletRequest
request
)
{
HashMap
<
String
,
String
>
config
=
new
HashMap
<
String
,
String
>();
HashMap
<
String
,
String
>
config
=
new
HashMap
<
String
,
String
>();
/* The API path could be unknown to the client in case the request was forwarded */
config
.
put
(
"apiPath"
,
request
.
getContextPath
());
if
(!
""
.
equals
(
customizationPath
))
{
if
(!
""
.
equals
(
customizationPath
))
{
config
.
put
(
"customizationPath"
,
customizationPath
);
config
.
put
(
"customizationPath"
,
customizationPath
);
}
}
...
...
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