docs: update for v0.2.0 three-layer architecture
- Add Router.scope, compile_scopes, Route.plug to routing.md
- Add Pipeline module documentation to plug-system.md
- Update request-lifecycle.md with three-layer diagram
- Replace Endpoint.start with Endpoint.to_handler + Server.run
- Add scope-based auth examples to authentication.md
- Add per-route plug examples to rate-limiting.md
All examples now use the new API pattern:
let handler = Endpoint.to_handler endpoint in
Server.run ~sw ~net ~config handler