aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/server.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/server.rs b/src/bin/server.rs
index c28d041..180c5bc 100644
--- a/src/bin/server.rs
+++ b/src/bin/server.rs
@@ -42,7 +42,12 @@ async fn main() -> std::io::Result<()> {
42 ) 42 )
43 .service( 43 .service(
44 web::scope("/product") 44 web::scope("/product")
45 .route("/new", web::post().to(product::new_product)), 45 .route("/{id}", web::get().to(product::product_details))
46 .route("/new", web::post().to(product::new_product))
47 .route(
48 "/update_product/{id}",
49 web::post().to(product::update_product),
50 ),
46 ) 51 )
47 .route("/hey", web::get().to(manual_hello)) 52 .route("/hey", web::get().to(manual_hello))
48 }) 53 })