UserAPI handles requests made in the API by the authenticated user. This provides user-friendly HTML pages and actions that work in the browser.
(f userHandlerFunc)
| 290 | // UserAPI handles requests made in the API by the authenticated user. |
| 291 | // This provides user-friendly HTML pages and actions that work in the browser. |
| 292 | func (h *Handler) UserAPI(f userHandlerFunc) http.HandlerFunc { |
| 293 | return h.UserAll(false, f, apiAuth) |
| 294 | } |
| 295 | |
| 296 | // UserWebAPI handles endpoints that accept a user authorized either via the web (cookies) or an Authorization header. |
| 297 | func (h *Handler) UserWebAPI(f userHandlerFunc) http.HandlerFunc { |