From fc2f2c7602c0bea8de76172f6d3303eab374a01e Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Mon, 22 Jun 2020 20:21:31 +0200 Subject: API: Move AllowedReactions endpoint into GetGenneralUI endpoint + creat new swagger section settings (#11854) * move Setting function into its own package * swagger add&use new section "settings" * move api AllowedReactions into general UI-Settings endpoint * prepare TEST * lint --- modules/structs/settings.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/structs') diff --git a/modules/structs/settings.go b/modules/structs/settings.go index dcd1b5cabd..4a6e0ce5a8 100644 --- a/modules/structs/settings.go +++ b/modules/structs/settings.go @@ -9,3 +9,8 @@ type GeneralRepoSettings struct { MirrorsDisabled bool `json:"mirrors_disabled"` HTTPGitDisabled bool `json:"http_git_disabled"` } + +// GeneralUISettings contains global ui settings exposed by API +type GeneralUISettings struct { + AllowedReactions []string `json:"allowed_reactions"` +} -- cgit v1.2.3