diff --git a/src/rpc.rs b/src/rpc.rs index 37b89f0..7445a5c 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -10,6 +10,7 @@ use http::status::StatusCode; use crate::aggregator::StampRequest; fn do_get_root(our_name: String, upstream_name: String) -> Response> { + let our_version = env!("CARGO_PKG_VERSION"); let body = format!( " @@ -17,13 +18,13 @@ fn do_get_root(our_name: String, upstream_name: String) -> Response> -This is the OpenTimestamps aggregator {}, aggregating timestamp requests for the upstream calendar server {} +

This is the Foxglove (v{our_version}) +OpenTimestamps aggregator {our_name}, aggregating timestamp +requests for the upstream calendar server {upstream_name}.

-", - our_name, - upstream_name - ); +"); + Response::builder() .status(StatusCode::OK) .header(http::header::CONTENT_TYPE, "text/html")