Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Jan 19, 2025
1 parent 8929639 commit 1dcc584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/classic/_base/src/routers/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub async fn hello(req: &mut Request) -> AppResult<Text<String>>{
name: &'a str,
}
let hello_tmpl = HelloTemplate {
name: req.param::<&str>("name").unwrap_or("World"),
name: req.query::<&str>("name").unwrap_or("World"),
};
Ok(Text::Html(hello_tmpl.render().unwrap()))
}
Expand Down

0 comments on commit 1dcc584

Please sign in to comment.