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

Method sessionStatus

apps/server/internal/httpserver/security.go:449–452  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

447}
448
449func (s *Server) sessionStatus(w http.ResponseWriter, r *http.Request) {
450 cfg := s.currentConfig()
451 writeJSON(w, http.StatusOK, sessionStatusPayload(s.requestAuthenticatedViaSession(r), cfg))
452}
453
454func (s *Server) sessionLogin(w http.ResponseWriter, r *http.Request) {
455 cfg := s.currentConfig()

Callers

nothing calls this directly

Calls 4

currentConfigMethod · 0.95
writeJSONFunction · 0.85
sessionStatusPayloadFunction · 0.85

Tested by

no test coverage detected