diff --git a/layouts/index.html b/layouts/index.html
index 37fc768..c383f20 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -130,8 +130,8 @@ fn register(data: Form) -> impl Responder {
"Hello from the index page"
}
-fn hello(req: HttpRequest) -> impl Responder {
- format!("Hello {}!", req.match_info().get("name").unwrap())
+fn hello(path: Path) -> impl Responder {
+ format!("Hello {}!", *path)
}
fn main() {