summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/misc/settings.go
blob: 11c7eef726f944012e57c2024031c6016267e399 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 misc

import (
	"code.gitea.io/gitea/modules/context"
	"code.gitea.io/gitea/modules/setting"
)

// SettingGetsAllowedReactions return allowed reactions
func SettingGetsAllowedReactions(ctx *context.APIContext) {
	// swagger:operation GET /settings/allowed_reactions miscellaneous getAllowedReactions
	// ---
	// summary: Returns string array of allowed reactions
	// produces:
	// - application/json
	// responses:
	//   "200":
	//     "$ref": "#/responses/StringSlice"
	ctx.JSON(200, setting.UI.Reactions)
}