Add migration and books

This commit is contained in:
gabatxo1312 2026-01-28 00:38:24 +01:00
commit 4cd32831c1
No known key found for this signature in database
19 changed files with 819 additions and 245 deletions

View file

@ -3,7 +3,10 @@ use askama_web::WebTemplate;
use axum::response::{IntoResponse, Response};
use snafu::prelude::*;
use crate::{models::user::UserError, state::config::ConfigError};
use crate::{
models::{book::BookError, user::UserError},
state::config::ConfigError,
};
#[derive(Template, WebTemplate)]
#[template(path = "error.html")]
@ -29,6 +32,10 @@ pub enum AppStateError {
User {
source: UserError,
},
#[snafu(display("Book Model Error"))]
Book {
source: BookError,
},
}
impl IntoResponse for AppStateError {