use lithair_core::prelude::*;
use std::future::Future;
use std::pin::Pin;
/// A custom route handler: takes a [`RouteRequest`] and returns a
/// [`RouteResponse`], matching the signature `with_route` expects.
pub fn handler(
_req: RouteRequest,
) -> Pin<Box<dyn Future<Output = anyhow::Result<RouteResponse>> + Send>> {
Box::pin(async {
Ok(response::json(
StatusCode::OK,
r#"{"status":"ok","service":"{{project_name}}"}"#,
))
})
}