diff options
author | 6543 <6543@obermui.de> | 2020-06-22 20:21:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 14:21:31 -0400 |
commit | fc2f2c7602c0bea8de76172f6d3303eab374a01e (patch) | |
tree | a3cbccd543b846ff5410248caf5110022bfc38ca /routers/api/v1/swagger/settings.go | |
parent | b948ecb2d29bfe373d966d10a33e7c195eb47da4 (diff) | |
download | gitea-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 'routers/api/v1/swagger/settings.go')
-rw-r--r-- | routers/api/v1/swagger/settings.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/settings.go b/routers/api/v1/swagger/settings.go new file mode 100644 index 0000000000..45266e51df --- /dev/null +++ b/routers/api/v1/swagger/settings.go @@ -0,0 +1,21 @@ +// Copyright 2020 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package swagger + +import api "code.gitea.io/gitea/modules/structs" + +// GeneralRepoSettings +// swagger:response GeneralRepoSettings +type swaggerResponseGeneralRepoSettings struct { + // in:body + Body api.GeneralRepoSettings `json:"body"` +} + +// GeneralUISettings +// swagger:response GeneralUISettings +type swaggerResponseGeneralUISettings struct { + // in:body + Body api.GeneralUISettings `json:"body"` +} |