got nested routing working

This commit is contained in:
2024-12-10 03:04:55 -08:00
parent 5e04815911
commit 6ce6b9289a
10 changed files with 328 additions and 19 deletions

1
src/structs/mod.rs Normal file
View File

@@ -0,0 +1 @@
pub mod users;

9
src/structs/users.rs Normal file
View File

@@ -0,0 +1,9 @@
pub struct User {
pub id: uuid::Uuid,
pub real_name: String,
pub username: String,
pub email: String,
pub password_hash: String,
pub is_admin: bool,
pub created_at: chrono::NaiveDateTime,
}