diff --git a/chapter03/managing_views_using_the_actix_web_framework/web_app/src/views/auth/mod.rs b/chapter03/managing_views_using_the_actix_web_framework/web_app/src/views/auth/mod.rs index 767c8c2..7dfa74d 100644 --- a/chapter03/managing_views_using_the_actix_web_framework/web_app/src/views/auth/mod.rs +++ b/chapter03/managing_views_using_the_actix_web_framework/web_app/src/views/auth/mod.rs @@ -7,7 +7,7 @@ use actix_web::web::{ServiceConfig, get, scope}; pub fn auth_views_factory(app: &mut ServiceConfig) { app.service( scope("v1/auth") - .route("login", get().to(login::login)) - .route("logout", get().to(logout::logout)) + .route("/login", get().to(login::login)) + .route("/logout", get().to(logout::logout)) ); }