(hb: web::Data<Handlebars<'_>>, lang: LangChoice)
| 30 | |
| 31 | #[get("/")] |
| 32 | async fn index(hb: web::Data<Handlebars<'_>>, lang: LangChoice) -> impl Responder { |
| 33 | let data = json!({ "lang": lang }); |
| 34 | let body = hb.render("index", &data).unwrap(); |
| 35 | web::Html::new(body) |
| 36 | } |
| 37 | |
| 38 | #[get("/{user}/{data}")] |
| 39 | async fn user( |