feat(server): change semantic versioning to dynamic build date (yyyy.mm.dd)
This commit is contained in:
1 parent
1f050b60b6
commit
44800d4ef2
4 files changed
+115
-1
No files matched your search
+1
-1
@@ -245,7 +245,7 @@ fn run_server(state: Arc<MemoryState>) -> Result<(), Box<dyn std::error::Error>>
|
||||
let app = Router::new()
|
||||
.route("/api/version", get(|| async move {
|
||||
axum::Json(serde_json::json!({
|
||||
"version": env!("CARGO_PKG_VERSION"),
|
||||
"version": env!("BUILD_DATE"),
|
||||
"git_hash": option_env!("GIT_HASH").unwrap_or("unknown")
|
||||
}))
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user