ayb 0.1.12

ayb makes it easy to create, host, and share embedded databases like SQLite and DuckDB
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::error::AybError;
use crate::http::structs::HealthResponse;
use actix_web::{get, HttpResponse};

#[get("/health")]
async fn health() -> Result<HttpResponse, AybError> {
    Ok(HttpResponse::Ok().json(HealthResponse {
        status: "ok".to_string(),
    }))
}