From 85d8a7be5314ff84bd7d8016b244a3186b88a873 Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Sat, 29 Jul 2023 17:10:02 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca3de95..75bc3ce 100644 --- a/README.md +++ b/README.md @@ -98,13 +98,13 @@ async fn get_index(HxBoosted(boosted): HxBoosted) -> impl IntoResponse { use axum::Router; use axum_htmx::HxRequestGuardLayer; -fn protected_router() -> Router { +fn router_one() -> Router { Router::new() // Redirects to "/" if the HX-Request header is not present .layer(HxRequestGuardLayer::default()) } -fn other_route() -> Router { +fn router_two() -> Router { Router::new() .layer(HxRequestGuardLayer::new("/redirect-to-this-route")) }