refactor: restructure project

This commit is contained in:
Sandro Eiler 2023-12-30 22:21:57 +01:00
parent 699f8733e2
commit 89ea0995bb
9 changed files with 57 additions and 44 deletions

View file

@ -78,7 +78,7 @@ async fn spawn_app() -> TestApp {
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
let addr = listener.local_addr().unwrap();
tokio::spawn(async move {
axum::serve(listener, learn_axum::app()).await.unwrap();
axum::serve(listener, learn_axum::startup::app()).await.unwrap();
});
TestApp { addr }
}