From b0e80dd3e879f20ae017db09c4a0b3fe2cea3f14 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Fri, 10 May 2024 12:00:57 +0200 Subject: [PATCH] work --- src/main.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index da179b6..8bb727b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,10 +39,12 @@ async fn main() -> std::io::Result<()> { web_base::map!(web_base::Site::new(), |app: actix_web::App<_>| { app.app_data(itemdb.clone()) .service(index) - .service(routes::item::supply_route) - .service(routes::item::item_variants_page) - .service(routes::item::get_items_route) - .service(routes::item::demand_route) + .service(routes::item::supply_route) // /supply + .service(routes::item::item_variants_page) // /item/{item_id}/variants + .service(routes::item::get_items_route) // /items + .service(routes::item::demand_route) // /demand + .service(routes::item::supply_log_route) // /item/{item_id}/{variant_id}/supply + .service(routes::item::demand_log_route) // /item/{item_id}/{variant_id}/demand }) .bind(("0.0.0.0".to_string(), 8080))? .run()