Documentation
¶
Overview ¶
Package endpointwire mounts endpoints (#2170) on the platform's mux: the /endpoints/{name}/... routes and the bot check's, which authenticate a signed-in caller the way the portal does (a browser session, CSRF-checked on a write, or an API key), and the bot check's settings behind the admin API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticator ¶
Authenticator adapts the portal's authentication to an endpoint's caller. The portal reports an error only for a browser session refused its CSRF token, which is the caller's credential refused rather than absent.
func Mount ¶
func Mount(mux *http.ServeMux, p *platform.Platform, adminAuth func() func(http.Handler) http.Handler, author func(*http.Request) string)
Mount registers the routes. A deployment with no database has no endpoints and mounts nothing. The settings routes are mounted where the admin API is on, behind adminAuth.
Types ¶
This section is empty.