1
0
mirror of https://github.com/actix/examples synced 2025-06-28 09:50:36 +02:00

update chat-broker example and fmt

This commit is contained in:
Nikolay Kim
2019-07-11 15:02:25 +06:00
parent 4aa663e794
commit 93275d7986
11 changed files with 51 additions and 61 deletions

View File

@ -23,10 +23,7 @@ fn index(hb: web::Data<Handlebars>) -> HttpResponse {
}
#[get("/{user}/{data}")]
fn user(
hb: web::Data<Handlebars>,
info: web::Path<(String, String)>,
) -> HttpResponse {
fn user(hb: web::Data<Handlebars>, info: web::Path<(String, String)>) -> HttpResponse {
let data = json!({
"user": info.0,
"data": info.1