MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Enable

Method Enable

controller/ai-key/iml.go:18–20  ·  view source on GitHub ↗
(ctx *gin.Context, providerId string, id string)

Source from the content-addressed store, hash-verified

16}
17
18func (i *imlAIKeyController) Enable(ctx *gin.Context, providerId string, id string) error {
19 return i.module.UpdateKeyStatus(ctx, providerId, id, true)
20}
21
22func (i *imlAIKeyController) Disable(ctx *gin.Context, providerId string, id string) error {
23 return i.module.UpdateKeyStatus(ctx, providerId, id, false)

Callers

nothing calls this directly

Calls 1

UpdateKeyStatusMethod · 0.65

Tested by

no test coverage detected