feat: middleware headers, fix concurrent session cookies issue, middleware headers, invalid session details

This commit is contained in:
2025-09-12 20:12:12 -05:00
parent dd212c3239
commit 2f853a7de9
4 changed files with 131 additions and 46 deletions

View File

@@ -18,6 +18,7 @@ pub struct Config {
///
/// Valid values are: "trace", "debug", "info", "warn", "error"
/// Defaults to "info" if not specified
#[serde(default = "default_log_level")]
pub log_level: String,
/// Discord bot token for authentication
pub bot_token: String,
@@ -43,6 +44,11 @@ pub struct Config {
pub shutdown_timeout: Duration,
}
/// Default log level of "info"
fn default_log_level() -> String {
"info".to_string()
}
/// Default port of 3000
fn default_port() -> u16 {
3000