mirror of
https://github.com/Xevion/banner.git
synced 2025-12-11 10:06:36 -06:00
feat: embed git commit into binary, provide link on frontend
This commit is contained in:
@@ -239,6 +239,10 @@ async fn status(State(_state): State<BannerState>) -> Json<Value> {
|
||||
"banner_api": {
|
||||
"status": "connected"
|
||||
},
|
||||
"git": {
|
||||
"commit": env!("GIT_COMMIT_HASH"),
|
||||
"short": env!("GIT_COMMIT_SHORT")
|
||||
},
|
||||
"timestamp": chrono::Utc::now().to_rfc3339()
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user