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:
@ -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
|
||||
|
Reference in New Issue
Block a user