MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / DeleteSetting

Function DeleteSetting

server/handles/setting.go:136–143  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

134}
135
136func DeleteSetting(c *gin.Context) {
137 key := c.Query("key")
138 if err := op.DeleteSettingItemByKey(key); err != nil {
139 common.ErrorResp(c, err, 500)
140 return
141 }
142 common.SuccessResp(c)
143}
144
145func PublicSettings(c *gin.Context) {
146 common.SuccessResp(c, op.GetPublicSettingsMap())

Callers

nothing calls this directly

Calls 3

DeleteSettingItemByKeyFunction · 0.92
ErrorRespFunction · 0.92
SuccessRespFunction · 0.92

Tested by

no test coverage detected