Skip to main content

Module defaults

Module defaults 

Source
Expand description

Default routes that scaffolded projects mount via with_defaults: / (homepage) and /docs (placeholder).

/admin is intentionally not registered here — it is owned by the admin layer (see crate::admin::Admin::register). If no admin models are registered, /admin is simply absent.

Functions§

body_limit
Reject requests whose Content-Length exceeds MAX_REQUEST_BODY_BYTES before any handler runs.
docs_placeholder
homepage
with_defaults