Skip to main content

config_handler

Function config_handler 

Source
pub async fn config_handler<A: DatabaseAdapter>(
    __arg0: State<AppState<A>>,
) -> Result<Json<ApiResponse<AdminConfigResponse>>, ApiError>
Expand description

Get sanitized runtime configuration.

Returns server version and runtime configuration with secrets redacted. Configuration includes database settings, cache settings, etc. but excludes API keys, passwords, and other sensitive data.

ยงErrors

This handler currently always succeeds; it is infallible.

Requires admin token authentication.