Compare commits
2 commits
06470d2db6
...
c830c60e75
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c830c60e75 | ||
![]() |
5f50a7dd9a |
2 changed files with 2 additions and 1 deletions
|
@ -194,6 +194,7 @@ impl CampForm {
|
||||||
|
|
||||||
#[post("/api/camp-form")]
|
#[post("/api/camp-form")]
|
||||||
pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse {
|
pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResponse {
|
||||||
|
info!("Starting camp form work: {:?}", form);
|
||||||
let full_name = format!("{} {}", form.first_name.0, form.last_name.0);
|
let full_name = format!("{} {}", form.first_name.0, form.last_name.0);
|
||||||
let map = (&form).into();
|
let map = (&form).into();
|
||||||
let future = store_camp_form(map);
|
let future = store_camp_form(map);
|
||||||
|
|
|
@ -100,7 +100,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
.service(Files::new("/", "./public").index_file("index.html"))
|
.service(Files::new("/", "./public").index_file("index.html"))
|
||||||
})
|
})
|
||||||
.bind(("localhost", 4242))?
|
.bind(("localhost", 4242))?
|
||||||
.workers(2)
|
.workers(4)
|
||||||
.run()
|
.run()
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue