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:
parent
5e0f404fc7
commit
aa68d742c9
4 changed files with 12 additions and 6 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue