adminUserGet returns information about a single user
(w http.ResponseWriter, r *http.Request)
| 82 | |
| 83 | // adminUserGet returns information about a single user |
| 84 | func (a *API) adminUserGet(w http.ResponseWriter, r *http.Request) error { |
| 85 | user := getUser(r.Context()) |
| 86 | |
| 87 | return sendJSON(w, http.StatusOK, user) |
| 88 | } |
| 89 | |
| 90 | // adminUserUpdate updates a single user object |
| 91 | func (a *API) adminUserUpdate(w http.ResponseWriter, r *http.Request) error { |