Added expenses.

This commit is contained in:
2026-09-20 21:52:49 +02:00
parent 15b8ae8f62
commit b9d18c4dd1
8 changed files with 226 additions and 1 deletions
+4 -1
View File
@@ -1,11 +1,14 @@
pub mod dtos;
mod expenses;
mod transactions;
pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
axum::Router::new()
.nest(
"/api",
axum::Router::new().nest("/transactions", transactions::create_router()),
axum::Router::new()
.nest("/expenses", expenses::create_router())
.nest("/transactions", transactions::create_router()),
)
.with_state(pool)
}