Initial public release v0.1.0
This commit is contained in:
commit
6c39e0bfbf
87 files changed
+10867
No files matched your search
@@ -0,0 +1,15 @@
|
||||
use axum::Json;
|
||||
use serde_json::{Value, json};
|
||||
|
||||
/// GET /version
|
||||
///
|
||||
/// Returns build metadata baked in at compile time via `build.rs`.
|
||||
pub async fn version() -> Json<Value> {
|
||||
Json(json!({
|
||||
"name": env!("CARGO_PKG_NAME"),
|
||||
"version": env!("CARGO_PKG_VERSION"),
|
||||
"git_commit": env!("GIT_COMMIT"),
|
||||
"build_date": env!("BUILD_DATE"),
|
||||
"rust_version": env!("RUST_VERSION"),
|
||||
}))
|
||||
}
|
||||
Reference in new issue
Block a user