2023-05-23 10:04:02 +02:00
|
|
|
use actix_web::{get, HttpResponse, Responder};
|
|
|
|
use serde::Serialize;
|
|
|
|
|
2024-01-24 12:10:50 +01:00
|
|
|
/// Response
|
2023-05-23 10:04:02 +02:00
|
|
|
#[derive(Serialize)]
|
|
|
|
struct Info {
|
|
|
|
unix_epoch: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[get("/love")]
|
2023-10-15 20:58:20 +02:00
|
|
|
async fn love() -> impl Responder {
|
2023-05-23 10:04:02 +02:00
|
|
|
HttpResponse::Ok().json(Info {
|
2024-05-28 20:26:58 +02:00
|
|
|
unix_epoch: 1_605_576_600,
|
2023-05-23 10:04:02 +02:00
|
|
|
})
|
|
|
|
}
|