package api import ( "net/http" ) // viaMCP reports whether r is an MCP tool call. func viaMCP(r *http.Request) bool { return false } // includeBody reports whether r asks for the material body. func includeBody(r *http.Request) bool { return false } // materialView is the answer of GET /materials/{id} for r. func materialView(r *http.Request, d materialDetailJSON) any { return d } // managedMaterialView is a managed material for r. func managedMaterialView(r *http.Request, m managedMaterialJSON, write bool) any { return m } // managedMaterialDetailView is a managed material with its files for r. func managedMaterialDetailView(r *http.Request, d managedMaterialDetailJSON, write bool) any { return d }