trustchain-http 0.1.0

HTTP Trustchain library and application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Static handlers for front-end.
use axum::response::Html;

pub async fn index() -> Html<String> {
    Html(
        std::fs::read_to_string(format!("{}/static/index.html", env!("CARGO_MANIFEST_DIR")))
            .unwrap(),
    )
}
pub async fn issuer() -> Html<String> {
    Html(
        std::fs::read_to_string(format!("{}/static/issuer.html", env!("CARGO_MANIFEST_DIR")))
            .unwrap(),
    )
}