diff --git a/project/src/handlers/hello_world.rs b/project/src/handlers/hello_world.rs index 31f50b8..4c03aeb 100644 --- a/project/src/handlers/hello_world.rs +++ b/project/src/handlers/hello_world.rs @@ -3,5 +3,5 @@ use actix_web::{get, HttpResponse}; #[get("/")] pub fn hello(_user: LoggedUser) -> HttpResponse { - HttpResponse::Ok().json("Hello World!") + HttpResponse::Ok().json(format!("Hello {}!", _user.username)) }