Full API
The examples/full-api package demonstrates middleware, tenant-scoped routes, admin routes, and a larger route graph.
Run It
Section titled “Run It”From the repository root:
pnpm installpnpm --filter full-api devWhat to Study
Section titled “What to Study”src/routes/middleware.ts: root route middlewaresrc/routes/admin/middleware.ts: group-level middlewaresrc/routes/tenants/$tenantId/middleware.ts: segment-level tenant contextsrc/middleware/*: application-owned middleware helperssrc/routes/**/route.ts: route contracts using the accumulated context
Use this example to understand how middleware context becomes part of the route contract without moving business logic into Routa.