♻️ Mount the books with their access
This commit is contained in:
parent
2bd99b156e
commit
a5468e81e0
3 changed files with 88 additions and 20 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue