📝 Document route access and custom authentication
Adapt the guides to the current PageTop API: Routes with the access of each route, Layers, StaticFiles and the administration panel in the core, with pagetop-admin reduced to the settings forms. Add the "Connect your own authentication" guide, the mail test page and the admin_path setting, and explain route access in the architecture page. Mount the books with their access through pagetop-mdbook.
This commit is contained in:
parent
f42f5e9b89
commit
345bd26974
41 changed files with 869 additions and 368 deletions
|
|
@ -9,7 +9,7 @@ necesita encima, y una forma de organizarlo.
|
|||
|
||||
| En Axum | En PageTop | Qué cambia |
|
||||
|---|---|---|
|
||||
| `Router::new().route(...)` | `configure_router()` de cada extensión | Cada extensión añade sus rutas al mismo `Router` |
|
||||
| `Router::new().route(...)` | `routes.route(ruta, acceso, ...)` en `configure_router()` | Cada ruta declara quién puede llegar a su *handler* (`Access`); un `Router` propio se añade con `routes.nest()` |
|
||||
| `axum::routing::get`, `post`... | `web::get`, `web::post`... | Nada: son los mismos |
|
||||
| `Path`, `Query`, `Form`, `Json` | `web::Path`, `web::Query`, `web::Form`, `Json` | Nada |
|
||||
| `Request` | `HttpRequest` | Una vista clonable de la petición, que no consume el cuerpo y se puede pedir junto a cualquier extractor |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue