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

Method GetSettingInfo

agent/app/api/v2/setting.go:18–25  ·  view source on GitHub ↗

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

(c *gin.Context)

Source from the content-addressed store, hash-verified

16// @Security Timestamp
17// @Router /settings/search [post]
18func (b *BaseApi) GetSettingInfo(c *gin.Context) {
19 setting, err := settingService.GetSettingInfo()
20 if err != nil {
21 helper.InternalServer(c, err)
22 return
23 }
24 helper.SuccessWithData(c, setting)
25}
26
27// @Tags System Setting
28// @Summary Get terminal AI setting info

Callers

nothing calls this directly

Calls 1

GetSettingInfoMethod · 0.65

Tested by

no test coverage detected