Skip to content

Commit

Permalink
Bump version to 0.6.0-rc.7. Add crate version to /carbonado/status.
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoquick committed Jul 14, 2023
1 parent 01f13ba commit 1aa46d6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitmask-core"
version = "0.6.0-rc.6"
version = "0.6.0-rc.7"
authors = [
"Jose Diego Robles <[email protected]>",
"Hunter Trujillo <[email protected]>",
Expand Down
4 changes: 3 additions & 1 deletion src/bin/bitmaskd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,12 @@ async fn co_metadata(
Ok((StatusCode::OK, Json(metadata)))
}

const BMC_VERSION: &str = env!("CARGO_PKG_VERSION");

async fn status() -> Result<impl IntoResponse, AppError> {
let cc = CacheControl::new().with_no_cache();

Ok((StatusCode::OK, TypedHeader(cc), "OK".to_string()))
Ok((StatusCode::OK, TypedHeader(cc), BMC_VERSION.to_string()))
}

async fn key(Path(pk): Path<String>) -> Result<impl IntoResponse, AppError> {
Expand Down

0 comments on commit 1aa46d6

Please sign in to comment.