MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / writeAppJSON

Function writeAppJSON

internal/server/app_api_read.go:130–133  ·  view source on GitHub ↗
(w http.ResponseWriter, status int, v any)

Source from the content-addressed store, hash-verified

128}
129
130func writeAppJSON(w http.ResponseWriter, status int, v any) {
131 w.WriteHeader(status)
132 _ = json.NewEncoder(w).Encode(v)
133}
134
135func writeAppNotFound(w http.ResponseWriter, what string) {
136 writeError(w, http.StatusNotFound, "not_found", what+" not found")

Callers 14

appListCollectionsMethod · 0.85
appGetCollectionMethod · 0.85
appListItemsMethod · 0.85
appGetItemMethod · 0.85
appListCommentsMethod · 0.85
appInstallMeMethod · 0.85
appMeMethod · 0.85
appCreateItemMethod · 0.85
appUpdateItemMethod · 0.85
appCreateCommentMethod · 0.85
appUpdateCommentMethod · 0.85
appRedeemContextMethod · 0.85

Calls 2

EncodeMethod · 0.65
WriteHeaderMethod · 0.45

Tested by

no test coverage detected