rust_wheel 0.1.14

A project to define some public component.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use actix_web::{web, HttpResponse, Responder};

pub async fn health() -> impl Responder  {
    HttpResponse::Ok().body("Ok")
}

pub async fn liveness() -> impl Responder  {
    HttpResponse::Ok().body("Ok")
}

pub fn config(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("/actuator")
            .route("/liveness", web::get().to(liveness))
    );
}