chc-service 0.3.0

A local web server that implements the chc (Chain Head Coordinator) interface in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
use axum::{
    body::Body,
    http::{Request, StatusCode},
    response::IntoResponse,
};

#[tracing::instrument]
pub async fn not_found(request: Request<Body>) -> impl IntoResponse {
    (StatusCode::NOT_FOUND, "404 - Not Found")
}