MCPcopy Create free account
hub / github.com/cloudwan/gohan / addJSONContentTypeHeader

Function addJSONContentTypeHeader

server/api.go:60–62  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

58}
59
60func addJSONContentTypeHeader(w http.ResponseWriter) {
61 w.Header().Add("Content-Type", "application/json")
62}
63
64func removeResourceWrapper(s *schema.Schema, dataMap map[string]interface{}) map[string]interface{} {
65 if innerData, ok := dataMap[s.Singular]; ok {

Callers 1

MapRouteBySchemaFunction · 0.85

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected