Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRoutes ¶
func BuildRoutes( mux *http.ServeMux, mgr *instance.Manager, assemblies *assembly.Repository, compiler *planner.Compiler, token string, ) http.Handler
BuildRoutes registers every API route on mux and returns the wrapped request chain that must actually be served.
Middleware order is deliberate. Recovery is outermost so it also covers panics raised by the layers inside it. Authentication follows, so an unauthenticated request is rejected before it reaches logging-heavy or handler code. Logging is innermost so it records requests that were actually accepted, keeping rejected probes out of the access log.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.