resolve the index before rendering (#4806)

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
Jonathan KelleyandEvan Almloff authored and GitHub committed 2025-10-19 15:03:57 -04:00
1 parent 5018074a12
commit 19ada89cec
5 files changed
+41 -28

No files matched your search

+3 -1
View File
@@ -284,9 +284,11 @@ impl RenderHandleState {
/// axum::serve(listener, router).await.unwrap();
/// }
/// ```
pub async fn render_handler(State(state): State<Self>, request: Request<Body>) -> Response {
pub async fn render_handler(State(mut state): State<Self>, request: Request<Body>) -> Response {
let (parts, _) = request.into_parts();
state.config.resolve_index();
let response = state
.renderers
.clone()