oficina / meet Public

Clone
git clone https://amadan.net/oficina/meet

Plain git — no account needed to clone.

Download

Download this file

1// Code generated by rastrillo generate. DO NOT EDIT.
2
3package gen
4
5import (
6 "net/http"
7
8 "amadan.net/rastrillo/rastrillo"
9)
10
11// Router builds the app's mux. ctxFactory constructs the *rastrillo.Ctx
12// a request runs with; see cmd/<app>/main.go. Each request gets a copy
13// of what the factory returns, so a factory may hand every request the
14// same Ctx. An actor stamped on the request context (rastrillo.WithActor,
15// the API tree's doing) lands on Ctx.Actor after the factory runs.
16// Failing that, a factory that left Actor zero gets the signed-in person
17// (sessions.ActorFrom), so op.Check sees the subject the scoped store
18// filters by and the caller is attributed even when the factory never
19// thinks about actors.
20func Router(ctxFactory func(*http.Request) *rastrillo.Ctx) *http.ServeMux {
21 mux := http.NewServeMux()
22 return mux
23}
24