(params: web::Path<(i32,)>)
| 28 | |
| 29 | #[get("/page-{id:\\d+}")] |
| 30 | async fn page(params: web::Path<(i32,)>) -> actix_web::Result<impl Responder> { |
| 31 | let body = Page { id: ¶ms.0 } |
| 32 | .render_once() |
| 33 | .map_err(error::ErrorInternalServerError)?; |
| 34 | |
| 35 | Ok(web::Html::new(body)) |
| 36 | } |
| 37 | |
| 38 | #[get("/")] |
| 39 | async fn hello() -> impl Responder { |
nothing calls this directly
no outgoing calls
no test coverage detected