diff options
author | John Olheiser <john.olheiser@gmail.com> | 2020-12-03 06:53:21 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 13:53:21 +0100 |
commit | e306c292ac478c0f09b2c02908e485132669aacb (patch) | |
tree | 8cd8718953a614577da00ee7be6bed0033e76f34 /routers/api/v1 | |
parent | 056b8f5b52fc0e9ab32f99c016e1ee28975c4bcd (diff) | |
download | gitea-e306c292ac478c0f09b2c02908e485132669aacb.tar.gz gitea-e306c292ac478c0f09b2c02908e485132669aacb.zip |
Expose default theme in meta and API (#13809)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'routers/api/v1')
-rw-r--r-- | routers/api/v1/settings/settings.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/api/v1/settings/settings.go b/routers/api/v1/settings/settings.go index 2b7b11bfd8..c94a3141e2 100644 --- a/routers/api/v1/settings/settings.go +++ b/routers/api/v1/settings/settings.go @@ -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, }) } |