Made scheduled transactions more generic.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user