Expand description
Full API router construction and the global middleware stack.
setup_api_server composes the route tree and applies the global layers
(body limit, analytics, context, session, CORS, trailing-slash, trace and
served-by headers, content negotiation, security headers) in the order they
must run. Binding and serving live in super::startup, which binds the
listener before this router exists and swaps it in once bootstrap
completes.
Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.