diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-20 22:15:14 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-20 22:15:14 +0100 |
commit | 58515ddfecd3701112616c33ad4879dae4b38ffd (patch) | |
tree | 6a3046b9005aa5247f5e077849409acdc62f17ce /src/main.rs | |
parent | daa7aea33439a91c4dd14592d1909d78ebe472e2 (diff) |
save before disaster
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 2871fc7..f55a17c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ async fn main() -> std::io::Result<()> { let db_raw = database::DatabaseWrapper::new() .await - .expect("Something went wrong -- DatabaseWrapper::new()"); + .expect("Something went wrong while creating DatabaseWrapper"); let db = Arc::new(db_raw); let app_state = AppState { database: db }; @@ -29,9 +29,10 @@ async fn main() -> std::io::Result<()> { App::new() .app_data(web::Data::new(app_state.clone())) .route("/", web::get().to(root)) - .service(routes::song::song) + .service(routes::song::get_song) .service(routes::album::album) - .service(routes::artist::artist) + .service(routes::artist::get_artist) + .service(routes::artist::post_artist) .service(routes::search_results::search_results) }) .bind(("127.0.0.1", 8000))? |