12 lines
275 B
Rust
12 lines
275 B
Rust
pub mod dtos;
|
|
mod transactions;
|
|
|
|
pub fn create_router(pool: sqlx::PgPool) -> axum::Router {
|
|
axum::Router::new()
|
|
.nest(
|
|
"/api",
|
|
axum::Router::new().nest("/transactions", transactions::create_router()),
|
|
)
|
|
.with_state(pool)
|
|
}
|