Set and get custom styling for web interface. For #718

This commit is contained in:
Gabe Kangas
2021-04-11 17:40:22 -07:00
parent 36be7b76c2
commit df7dff081f
5 changed files with 34 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ func GetServerConfig(w http.ResponseWriter, r *http.Request) {
Logo: data.GetLogoPath(),
SocialHandles: data.GetSocialHandles(),
NSFW: data.GetNSFW(),
CustomStyles: data.GetCustomStyles(),
},
FFmpegPath: utils.ValidatedFfmpegPath(data.GetFfMpegPath()),
StreamKey: data.GetStreamKey(),
@@ -94,6 +95,7 @@ type webConfigResponse struct {
ExtraPageContent string `json:"extraPageContent"`
StreamTitle string `json:"streamTitle"` // What's going on with the current stream
SocialHandles []models.SocialHandle `json:"socialHandles"`
CustomStyles string `json:"customStyles"`
}
type yp struct {