mirror of
https://github.com/actix/actix-website
synced 2025-06-29 08:14:58 +02:00
simplifies the front-page examples.
This commit is contained in:
@ -14,8 +14,8 @@ fn index() -> HttpResponse {
|
||||
.body(include_str!("../static/form.html"))
|
||||
}
|
||||
|
||||
fn register(params: web::Form<Register>) -> impl Responder {
|
||||
format!("Hello {} from {}!", params.username, params.country)
|
||||
fn register(form: web::Form<Register>) -> impl Responder {
|
||||
format!("Hello {} from {}!", form.username, form.country)
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
Reference in New Issue
Block a user