added error handling

This commit is contained in:
2024-12-10 03:59:34 -08:00
parent 6ce6b9289a
commit 4caa0c8328
7 changed files with 160 additions and 23 deletions

View File

@@ -11,6 +11,14 @@ mod v1;
mod structs;
mod state;
mod db;
mod error;
pub(crate) use anyhow::Context;
pub(crate) use axum::extract::{Json, State};
pub(crate) use error::{AnyhowError, AppError, Errors};
pub(crate) use serde::{Deserialize, Serialize};
pub(crate) use state::AppState;
pub(crate) use utoipa::ToSchema;
#[derive(OpenApi)]
#[openapi(