Started reimplementation of the Rest api in actix-web

This commit is contained in:
2023-03-17 22:19:10 +01:00
parent 7741c1dbae
commit d961896242
12 changed files with 2247 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
pub struct DatabaseError(pub String);
impl From<diesel::result::Error> for DatabaseError {
fn from(value: diesel::result::Error) -> Self {
DatabaseError(value.to_string())
}
}
impl From<argon2::password_hash::Error> for DatabaseError {
fn from(value: argon2::password_hash::Error) -> Self {
DatabaseError(value.to_string())
}
}