MCPcopy Index your code
hub / github.com/ZenNotes/zennotes / version

Method version

apps/server/internal/httpserver/server.go:288–293  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

286}
287
288func (s *Server) version(w http.ResponseWriter, _ *http.Request) {
289 writeJSON(w, http.StatusOK, map[string]any{
290 "version": "0.1.0-web",
291 "go": runtime.Version(),
292 })
293}
294
295func (s *Server) capabilities(w http.ResponseWriter, _ *http.Request) {
296 cfg := s.currentConfig()

Callers

nothing calls this directly

Calls 1

writeJSONFunction · 0.85

Tested by

no test coverage detected