feat: started repository abstraction

This commit is contained in:
Jef Roosens 2025-02-27 21:39:38 +01:00
parent d866d23efa
commit 952f92c178
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
8 changed files with 128 additions and 1 deletions

View file

@ -7,6 +7,7 @@ use tower_http::trace::TraceLayer;
#[derive(Clone)]
pub struct Context {
pub pool: crate::db::DbPool,
pub repo: crate::db::SqliteRepository,
}
pub fn app(ctx: Context) -> Router {