MCPcopy
hub / github.com/writefreely/writefreely / UserAPI

Method UserAPI

handle.go:292–294  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
292func (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.
297func (h *Handler) UserWebAPI(f userHandlerFunc) http.HandlerFunc {

Callers 1

InitRoutesFunction · 0.80

Calls 1

UserAllMethod · 0.95

Tested by

no test coverage detected