mylloon.fr/src/routes/api_v1.rs
Mylloon 9f95eb2b6b
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
Rework (#35)
- Style rework
- Update dependencies to latest

Close #33
Close #34

Reviewed-on: #35
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
2023-10-15 20:58:20 +02:00

14 lines
257 B
Rust

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