Made scheduled transactions more generic.

This commit is contained in:
2026-09-24 21:07:38 +02:00
parent 18cf7e6bdd
commit 9e5a976ac7
17 changed files with 235 additions and 92 deletions
+5 -2
View File
@@ -1,5 +1,5 @@
pub mod dtos;
mod expenses;
mod scheduled_transactions;
mod transactions;
pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
@@ -7,7 +7,10 @@ pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
.nest(
"/api",
axum::Router::new()
.nest("/expenses", expenses::create_router())
.nest(
"/scheduled-transactions",
scheduled_transactions::create_router(),
)
.nest("/transactions", transactions::create_router()),
)
.with_state(pool)