From 3e1eadbbfdca1b2c0cb32ba4c8e1160a60e0ccb8 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sat, 31 Oct 2020 10:14:31 -0400 Subject: All basic functionality implemented. --- dichroism/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dichroism/src/main.rs') diff --git a/dichroism/src/main.rs b/dichroism/src/main.rs index c255717..68b7091 100644 --- a/dichroism/src/main.rs +++ b/dichroism/src/main.rs @@ -16,6 +16,7 @@ mod constants; mod dtos; mod error; mod handlers; +mod image_service; mod models; mod repo; mod result; @@ -34,8 +35,8 @@ async fn main() -> Result<()> { .data(pool.clone()) .service(handlers::hello) .service(handlers::get_products) - .service(handlers::update_product) - .service(handlers::create_product) + .service(handlers::patch_product) + .service(handlers::post_product) }); // If using listenfd, bind to it instead of the configured address to allow for cargo watch -- cgit v1.2.3