work
This commit is contained in:
parent
9d5ec6d1b3
commit
b0e80dd3e8
1 changed files with 6 additions and 4 deletions
10
src/main.rs
10
src/main.rs
|
@ -39,10 +39,12 @@ async fn main() -> std::io::Result<()> {
|
||||||
web_base::map!(web_base::Site::new(), |app: actix_web::App<_>| {
|
web_base::map!(web_base::Site::new(), |app: actix_web::App<_>| {
|
||||||
app.app_data(itemdb.clone())
|
app.app_data(itemdb.clone())
|
||||||
.service(index)
|
.service(index)
|
||||||
.service(routes::item::supply_route)
|
.service(routes::item::supply_route) // /supply
|
||||||
.service(routes::item::item_variants_page)
|
.service(routes::item::item_variants_page) // /item/{item_id}/variants
|
||||||
.service(routes::item::get_items_route)
|
.service(routes::item::get_items_route) // /items
|
||||||
.service(routes::item::demand_route)
|
.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))?
|
.bind(("0.0.0.0".to_string(), 8080))?
|
||||||
.run()
|
.run()
|
||||||
|
|
Loading…
Reference in a new issue