Added Postgres backend and SQLx.

This commit is contained in:
2026-09-19 22:13:38 +02:00
parent 04ebc95920
commit 15b8ae8f62
17 changed files with 1545 additions and 49 deletions
+8 -5
View File
@@ -1,8 +1,11 @@
pub mod dtos;
mod transactions;
pub fn create_router() -> axum::Router {
axum::Router::new().nest(
"/api",
axum::Router::new().nest("/transactions", transactions::create_router()),
)
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)
}