fix missing argument
This commit is contained in:
parent
e8cac82b4f
commit
53936258a9
|
@ -45,16 +45,14 @@ async fn main() {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn register_form(extract::Path(name): extract::Path<String>) -> impl IntoResponse {
|
async fn register_form() -> impl IntoResponse {
|
||||||
let template = HelloTemplate { name };
|
let template = HelloTemplate {};
|
||||||
HtmlTemplate(template)
|
HtmlTemplate(template)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "hello.html")]
|
#[template(path = "hello.html")]
|
||||||
struct HelloTemplate {
|
struct HelloTemplate {}
|
||||||
name: String,
|
|
||||||
}
|
|
||||||
|
|
||||||
struct HtmlTemplate<T>(T);
|
struct HtmlTemplate<T>(T);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue