Respond with a JSON struct containing info about the current login session
()
| 28 | |
| 29 | // Respond with a JSON struct containing info about the current login session |
| 30 | func (h *handler) respondWithSessionInfo() error { |
| 31 | |
| 32 | response := h.formatSessionResponse(h.user, "") |
| 33 | |
| 34 | h.writeJSON(response) |
| 35 | return nil |
| 36 | } |
| 37 | |
| 38 | // GET /_session returns info about the current user |
| 39 | func (h *handler) handleSessionGET() error { |
no test coverage detected