docs: add some comments on useful locations
This commit is contained in:
@ -16,5 +16,6 @@ pub fn get_router(assets_path: &Path) -> axum::Router {
|
||||
.nest_service("/assets", ServeDir::new(assets_path))
|
||||
.merge(pages::get_routes())
|
||||
.fallback(fallback)
|
||||
// The AutoVaryLayer is used to avoid cache issues with htmx (cf: https://github.com/robertwayne/axum-htmx?tab=readme-ov-file#auto-caching-management)
|
||||
.layer(AutoVaryLayer)
|
||||
}
|
||||
|
Reference in New Issue
Block a user