#[get]
Define a GET route handler
#[get("/users/:id")] async fn get_user(path: Path<String>) -> Json<User> { // handler code }