mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 17:18:13 +01:00
14 lines
258 B
Rust
14 lines
258 B
Rust
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"),
|
|
})
|
|
}
|