MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / handleSessionGET

Method handleSessionGET

rest/session_api.go:39–41  ·  view source on GitHub ↗

GET /_session returns info about the current user

()

Source from the content-addressed store, hash-verified

37
38// GET /_session returns info about the current user
39func (h *handler) handleSessionGET() error {
40 return h.respondWithSessionInfo()
41}
42
43// POST /_session creates a login session and sets its cookie
44func (h *handler) handleSessionPOST() error {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected