poke/january/src/routes/info.rs

15 lines
258 B
Rust
Raw Normal View History

2023-12-10 11:27:07 +01:00
use actix_web::web;
use actix_web::Responder;
use serde::Serialize;
#[derive(Debug, Serialize)]
pub struct Info {
january: &'static str,
}
pub async fn get() -> impl Responder {
web::Json(Info {
january: env!("CARGO_PKG_VERSION"),
})
}