bal server route /

This commit is contained in:
bitcoinafterlife 2025-11-03 09:36:56 -04:00
parent 83749afddd
commit d5fe22cc14
Signed by: bitcoinafterlife
GPG Key ID: FE756706E833E0D1

View File

@ -112,6 +112,11 @@ async fn echo_version(
) -> Result<Response<BoxBody<Bytes, hyper::Error>>, hyper::Error> {
Ok(Response::new(full(VERSION)))
}
async fn echo_home(cfg: &MyConfig
) -> Result<Response<BoxBody<Bytes, hyper::Error>>, hyper::Error> {
debug!("echo_home: {}", cfg.info );
Ok(Response::new(full(cfg.info.clone())))
}
async fn echo_pub_key(
cfg: &MyConfig,
) -> Result<Response<BoxBody<Bytes, hyper::Error>>, hyper::Error> {
@ -454,6 +459,9 @@ async fn echo(
if uri=="/.pub_key.pem" {
ret = echo_pub_key(cfg).await;
}
if uri=="/"{
ret = echo_home(cfg).await;
}
ret
}