From 01d3464725c583cac22dd33bbb6ee46980c29b75 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Thu, 13 Aug 2020 20:35:46 +0200 Subject: 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) --- src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/BwlpREST.java') 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 -- cgit v1.2.3-55-g7522