Expose default theme in meta and API (#13809)

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
John Olheiserand6543 authored and GitHub committed 2020-12-03 13:53:21 +01:00
1 parent 056b8f5b52
commit e306c292ac
4 files changed
+7

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ func GetGeneralUISettings(ctx *context.APIContext) {
// "200":
// "$ref": "#/responses/GeneralUISettings"
ctx.JSON(http.StatusOK, api.GeneralUISettings{
DefaultTheme: setting.UI.DefaultTheme,
AllowedReactions: setting.UI.Reactions,
})
}