1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
//! Riz API health route use actix_web::{get, HttpResponse, Responder, Result}; /// Simple ping route /// /// # Path /// `GET /v1/ping` /// /// # Responses /// - `200`: [String] /// #[utoipa::path( responses( (status = 200, description = "OK", body = String), ), )] #[get("/v1/ping")] pub async fn ping() -> Result<impl Responder> { // could check if we are having any issues opening sockets... Ok(HttpResponse::Ok().json("ok")) }