added error handling
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user