pinakes-core: fix minor clippy warnings; add toggle for Swagger UI generation

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie33a5d17b774289023e3855789d3adc86a6a6964
This commit is contained in:
raf 2026-03-21 02:15:31 +03:00
commit aa68d742c9
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 12 additions and 6 deletions

View file

@ -1126,6 +1126,10 @@ pub struct ServerConfig {
/// TLS/HTTPS configuration
#[serde(default)]
pub tls: TlsConfig,
/// Enable the Swagger UI at /api/docs.
/// Defaults to true. Set to false to disable in production if desired.
#[serde(default = "default_true")]
pub swagger_ui: bool,
}
/// TLS/HTTPS configuration for secure connections
@ -1470,6 +1474,7 @@ impl Default for Config {
cors_enabled: false,
cors_origins: vec![],
tls: TlsConfig::default(),
swagger_ui: true,
},
ui: UiConfig::default(),
accounts: AccountsConfig::default(),