resolve the index before rendering (#4806)
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
1 parent
5018074a12
commit
19ada89cec
5 files changed
+41
-28
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user