Add migration and books
This commit is contained in:
parent
30be91390b
commit
4cd32831c1
19 changed files with 819 additions and 245 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue