MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / writeAPIError

Function writeAPIError

internal/web/api.go:29–34  ·  view source on GitHub ↗
(w http.ResponseWriter, status int, message string)

Source from the content-addressed store, hash-verified

27}
28
29func writeAPIError(w http.ResponseWriter, status int, message string) {
30 writeJSON(w, status, APIResponse[struct{}]{
31 Success: false,
32 Error: message,
33 })
34}
35
36// RunInTestMode wraps a handler so that when the request carries
37// "X-Test-Mode: true", the current config overrides are snapshotted before

Callers 15

apiV1GetGameTimeCalendarFunction · 0.85
apiV1CreateAudioFunction · 0.85
apiV1PatchAudioFunction · 0.85
apiV1DeleteAudioFunction · 0.85
apiV2GetSpellFunction · 0.85
apiV2CreateSpellFunction · 0.85
apiV2PatchSpellFunction · 0.85
apiV2DeleteSpellFunction · 0.85
apiV2GetSpellScriptFunction · 0.85

Calls 1

writeJSONFunction · 0.85

Tested by

no test coverage detected