routes

package
v0.0.0-...-4afd048 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL