This commit is contained in:
JMARyA 2024-05-10 12:00:57 +02:00
parent 9d5ec6d1b3
commit b0e80dd3e8
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -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()