thesis/project/server/src/handlers/hello_world.rs
2020-04-10 18:44:45 +03:00

7 lines
216 B
Rust

use crate::handlers::authentication::LoggedUser;
use actix_web::{get, HttpResponse};
#[get("/")]
pub fn hello(_user: LoggedUser) -> HttpResponse {
HttpResponse::Ok().json(format!("Hello {}!", _user.username))
}