MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / GetSettingInfo

Method GetSettingInfo

core/app/api/v2/setting.go:29–36  ·  view source on GitHub ↗

@Tags System Setting @Summary Load system setting info @Success 200 {object} dto.SettingInfo @Security ApiKeyAuth @Security Timestamp @Router /core/settings/search [post]

(c *gin.Context)

Source from the content-addressed store, hash-verified

27// @Security Timestamp
28// @Router /core/settings/search [post]
29func (b *BaseApi) GetSettingInfo(c *gin.Context) {
30 setting, err := settingService.GetSettingInfo()
31 if err != nil {
32 helper.InternalServer(c, err)
33 return
34 }
35 helper.SuccessWithData(c, setting)
36}
37
38// @Tags System Setting
39// @Summary Load base system setting info

Callers

nothing calls this directly

Calls 1

GetSettingInfoMethod · 0.65

Tested by

no test coverage detected