adminUserGet returns information about a single user
(w http.ResponseWriter, r *http.Request)
| 133 | |
| 134 | // adminUserGet returns information about a single user |
| 135 | func (a *API) adminUserGet(w http.ResponseWriter, r *http.Request) error { |
| 136 | user := getUser(r.Context()) |
| 137 | |
| 138 | return sendJSON(w, http.StatusOK, user) |
| 139 | } |
| 140 | |
| 141 | // adminUserUpdate updates a single user object |
| 142 | func (a *API) adminUserUpdate(w http.ResponseWriter, r *http.Request) error { |