MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / handleVersion

Method handleVersion

internal/sidecar/server.go:119–125  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

117}
118
119func (s *Server) handleVersion(w http.ResponseWriter, r *http.Request) {
120 if r.Method != http.MethodGet {
121 methodNotAllowed(w)
122 return
123 }
124 writeJSON(w, map[string]string{"version": s.services.App.Version(), "platform": s.services.App.Platform()})
125}
126
127func (s *Server) handleProviders(w http.ResponseWriter, r *http.Request) {
128 switch r.Method {

Callers

nothing calls this directly

Calls 4

methodNotAllowedFunction · 0.85
VersionMethod · 0.80
PlatformMethod · 0.80
writeJSONFunction · 0.70

Tested by

no test coverage detected