pokemon/src/api/health.rs

14 lines
254 B
Rust

use serde::Serialize;
#[derive(Serialize)]
struct Response{
message: String,
}
pub fn serve() -> rouille::Response {
// rouille::Response::text("Got you!")
rouille::Response::json(&Response{
message: "Got me!".to_string(),
})
}