use actix_web::{HttpRequest, Json, Result}; use VERSION; pub mod api; pub mod router; #[derive(Serialize)] pub struct Health { version: &'static str, } pub fn index(_req: &HttpRequest) -> &'static str { "Hello, World!" } pub fn healthcheck(_req: HttpRequest) -> Result> { Ok(Json(Health { version: VERSION })) }