Routeit Examples
How to Use These Examples
These examples cover route handlers, middleware, auth guards, named routes, and framework integration.
- Start with the first example page to learn the baseline pattern.
- Move to advanced pages that match your framework or production scenario.
- Keep the API page open while adapting snippets to your project.
These examples are aligned with the current @vielzeug/routeit API.
Examples Overview
- Framework Integration
- Authentication
- Role-based Access Control
- Lazy Loading
- Named Routes & URL Builder
- Navigation Tracking & Analytics
- Page Titles from Meta
- Error Handling
- Hash Fragment Navigation
- Scroll Restoration
- Middleware-only Routes
- View Transitions
- Typed Group Prefix Params
using— Explicit Resource Management- Wildcard Routes
- SPA with Layout Selection
- Redirects
- Same-URL Deduplication
- Base Path Deployment
- autoStart
- View Transitions API