Add basic register and login
All checks were successful
Build Crate / build (push) Successful in 1m45s

This commit is contained in:
2024-08-28 16:53:08 -04:00
parent f4f491085d
commit 5af626b746
23 changed files with 397 additions and 31 deletions

19
src/models/generic.rs Normal file
View File

@@ -0,0 +1,19 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Clone)]
pub struct GenericResponse {
pub status: String,
}
impl GenericResponse {
pub fn ok() -> Self {
GenericResponse {
status: String::new(),
}
}
pub fn err(msg: &str) -> Self {
GenericResponse {
status: msg.to_string(),
}
}
}