use actix_web::{get, HttpResponse, Responder}; use serde::Serialize; /// Response #[derive(Serialize)] struct Info { unix_epoch: u32, } #[get("/love")] pub async fn love() -> impl Responder { HttpResponse::Ok().json(Info { unix_epoch: 1_605_576_600, }) }