MCPcopy Create free account
hub / github.com/buggregator/server / writeJSON

Function writeJSON

internal/server/http/api.go:175–178  ·  view source on GitHub ↗
(w http.ResponseWriter, v any)

Source from the content-addressed store, hash-verified

173}
174
175func writeJSON(w http.ResponseWriter, v any) {
176 w.Header().Set("Content-Type", "application/json")
177 json.NewEncoder(w).Encode(v)
178}
179
180func writeError(w http.ResponseWriter, msg string, code int) {
181 w.Header().Set("Content-Type", "application/json")

Callers 2

RegisterAPIFunction · 0.70
listAttachmentsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected