summaryrefslogtreecommitdiffstats
path: root/src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java
diff options
context:
space:
mode:
authorUdo Walter2020-08-13 20:35:46 +0200
committerUdo Walter2020-08-13 20:35:46 +0200
commit01d3464725c583cac22dd33bbb6ee46980c29b75 (patch)
tree8d3a0de1809d22468a714ed4a13aedd3cbf86b25 /src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java
parentSome UI changes: (diff)
downloadbwlp-guacamole-ext-01d3464725c583cac22dd33bbb6ee46980c29b75.tar.gz
bwlp-guacamole-ext-01d3464725c583cac22dd33bbb6ee46980c29b75.tar.xz
bwlp-guacamole-ext-01d3464725c583cac22dd33bbb6ee46980c29b75.zip
Move custom logo to the bottom left
With the property 'slx-logo-primary: true' in the guacamole.properties file the custom logo will be displayed as the primary logo in the center. (In this case the bwlehrpool logo will displayed in the bottom left instead)
Diffstat (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java')
-rw-r--r--src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java
index 65258f7..4830d02 100644
--- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java
+++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java
@@ -8,10 +8,10 @@ import javax.ws.rs.core.MediaType;
public class BwlpREST {
@GET
- @Path("logoUrl")
- @Produces(MediaType.TEXT_PLAIN)
- public String getLogoUrl() {
- return SlxConfig.logoUrl();
+ @Path("logoConfig")
+ @Produces(MediaType.APPLICATION_JSON)
+ public String getLogoConfig() {
+ return "{ \"url\": \"" + SlxConfig.logoUrl() + "\", \"primary\": " + SlxConfig.logoPrimary() + " }";
}
} \ No newline at end of file