summaryrefslogtreecommitdiffstats
path: root/modules/structs/settings.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-06-22 20:21:31 +0200
committerGitHub <noreply@github.com>2020-06-22 14:21:31 -0400
commitfc2f2c7602c0bea8de76172f6d3303eab374a01e (patch)
treea3cbccd543b846ff5410248caf5110022bfc38ca /modules/structs/settings.go
parentb948ecb2d29bfe373d966d10a33e7c195eb47da4 (diff)
downloadgitea-fc2f2c7602c0bea8de76172f6d3303eab374a01e.tar.gz
gitea-fc2f2c7602c0bea8de76172f6d3303eab374a01e.zip
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
Diffstat (limited to 'modules/structs/settings.go')
-rw-r--r--modules/structs/settings.go5
1 files changed, 5 insertions, 0 deletions
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"`
+}