// Code generated by rastrillo generate. DO NOT EDIT. package gen import ( "net/http" "amadan.net/rastrillo/rastrillo" ) // Router builds the app's mux. ctxFactory constructs the *rastrillo.Ctx // a request runs with; see cmd//main.go. Each request gets a copy // of what the factory returns, so a factory may hand every request the // same Ctx. An actor stamped on the request context (rastrillo.WithActor, // the API tree's doing) lands on Ctx.Actor after the factory runs. // Failing that, a factory that left Actor zero gets the signed-in person // (sessions.ActorFrom), so op.Check sees the subject the scoped store // filters by and the caller is attributed even when the factory never // thinks about actors. func Router(ctxFactory func(*http.Request) *rastrillo.Ctx) *http.ServeMux { mux := http.NewServeMux() return mux }