feat: started repository abstraction
This commit is contained in:
parent
d866d23efa
commit
952f92c178
8 changed files with 128 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue