RouteDef
Summary
A route definition that can be a string pattern, RoutePattern, or an object with method and
pattern.
Signature
type RouteDef<source> =
| source
| RoutePattern<source>
| { method?: RequestMethod; pattern: source | RoutePattern<source> };