Assign version to backend
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-10-19 15:32:38 +02:00
parent 445c1b014e
commit b7720df305
5 changed files with 14 additions and 2 deletions

View File

@ -656,7 +656,7 @@ dependencies = [
[[package]]
name = "central_backend"
version = "0.1.0"
version = "1.0.2"
dependencies = [
"actix",
"actix-cors",

View File

@ -1,6 +1,6 @@
[package]
name = "central_backend"
version = "0.1.0"
version = "1.0.2"
edition = "2021"
[dependencies]

View File

@ -13,6 +13,7 @@ struct ServerConfig {
auth_disabled: bool,
constraints: StaticConstraints,
unsecure_origin: String,
backend_version: &'static str,
}
impl Default for ServerConfig {
@ -21,6 +22,7 @@ impl Default for ServerConfig {
auth_disabled: AppConfig::get().unsecure_disable_login,
constraints: Default::default(),
unsecure_origin: AppConfig::get().unsecure_origin(),
backend_version: env!("CARGO_PKG_VERSION"),
}
}
}