routing
Installation
SKILL.md
Routing
Use this skill when designing endpoint structure, grouping handlers, or fixing route parameter behavior.
Workflow
- Start with handler decorators (
@get,@post, etc.). - Group related handlers into
RouterorControllerunits. - Validate path parameters and convert types using type hints.
- Add route-level concerns (
tags, guards, dependencies) where needed.
Core Patterns
Route Handler
from litestar import get