♻️ Mount the books with their access

This commit is contained in:
Manuel Cillero 2026-11-07 17:39:42 +01:00
parent 2bd99b156e
commit a5468e81e0
3 changed files with 88 additions and 20 deletions

View file

@ -91,9 +91,9 @@ impl Extension for MyApp {
vec![&pagetop_mdbook::MdBook]
}
fn configure_router(&self, router: Router) -> Router {
pagetop_mdbook::serve_mdbook!(router, [doc] => "/doc");
router
fn configure_router(&self, routes: Routes) -> Routes {
pagetop_mdbook::serve_mdbook!(routes, [doc] => "/doc", Access::Public);
routes
}
}
```