diff --git a/Cargo.lock b/Cargo.lock index c87a07a7..9212b4d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -912,16 +912,6 @@ dependencies = [ "serde_json", ] -[[package]] -name = "async_ex2" -version = "1.0.0" -dependencies = [ - "actix-web", - "env_logger", - "serde 1.0.136", - "serde_json", -] - [[package]] name = "async_pg" version = "1.0.0" @@ -3418,6 +3408,16 @@ dependencies = [ "tempfile", ] +[[package]] +name = "nested-routing" +version = "1.0.0" +dependencies = [ + "actix-web", + "env_logger", + "serde 1.0.136", + "serde_json", +] + [[package]] name = "net2" version = "0.2.37" diff --git a/basics/nested-routing/Cargo.toml b/basics/nested-routing/Cargo.toml index 0c37568e..ccdd2bce 100644 --- a/basics/nested-routing/Cargo.toml +++ b/basics/nested-routing/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "async_ex2" +name = "nested-routing" version = "1.0.0" edition = "2021" diff --git a/basics/nested-routing/src/appconfig.rs b/basics/nested-routing/src/app_config.rs similarity index 100% rename from basics/nested-routing/src/appconfig.rs rename to basics/nested-routing/src/app_config.rs diff --git a/basics/nested-routing/src/bin/main.rs b/basics/nested-routing/src/bin/main.rs index 32f699a5..e3393873 100644 --- a/basics/nested-routing/src/bin/main.rs +++ b/basics/nested-routing/src/bin/main.rs @@ -1,6 +1,6 @@ use actix_web::{middleware, App, HttpServer}; -use async_ex2::appconfig::config_app; +use nested_routing::app_config::config_app; #[actix_web::main] async fn main() -> std::io::Result<()> { diff --git a/basics/nested-routing/src/handlers/products.rs b/basics/nested-routing/src/handlers/products.rs index 67385528..3dd3c940 100644 --- a/basics/nested-routing/src/handlers/products.rs +++ b/basics/nested-routing/src/handlers/products.rs @@ -24,7 +24,7 @@ pub async fn remove_product(_id: web::Path) -> Result