liquid-rescale-api/src/routes/index.rs

13 lines
285 B
Rust
Raw Normal View History

2023-04-03 01:51:09 +00:00
use axum::{response::IntoResponse, Json};
use serde_json::json;
pub async fn index_route() -> impl IntoResponse {
let data = json!({
"name": "liquid-rescale-api",
"version": env!("CARGO_PKG_VERSION"),
"about": "Welcome traveler!"
});
Json(data)
}