mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
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
This commit is contained in:
parent
b948ecb2d2
commit
fc2f2c7602
7 changed files with 81 additions and 41 deletions
21
routers/api/v1/swagger/settings.go
Normal file
21
routers/api/v1/swagger/settings.go
Normal file
|
@ -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"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue