Mylloon
9f95eb2b6b
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
- 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>
14 lines
257 B
Rust
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,
|
|
})
|
|
}
|