Print the users name from cookie
This commit is contained in:
parent
d7d2fa5d9e
commit
eebb8594de
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue