Skip to main content

app

Function app 

Source
pub fn app(state: AppState) -> Result<Router, ProxyError>
Expand description

Build the axum router: POST /v1/messages, GET /v1/capabilities, GET /healthz, GET /metrics.

ยงErrors

ProxyError::Internal if the Prometheus recorder fails to install (see crate::metrics::install).