Include repo in AppState
This commit is contained in:
parent
4914b03fcd
commit
6f95d58e11
4 changed files with 1010 additions and 9 deletions
|
|
@ -79,7 +79,7 @@ async fn run() -> anyhow::Result<()> {
|
|||
set_up_logging(args.verbose);
|
||||
info!("You are running {NAME} {VERSION}");
|
||||
|
||||
let state = AppState::new(&args.db).await?;
|
||||
let state = AppState::new(&args.db, &args.repo).await?;
|
||||
|
||||
let app = Router::new()
|
||||
.route("/", get(index))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue