Type that contains a hash for url <-> routes / router matching. An url contains the various routes that are versioned and one router that does the magic to get to a specific route.
Reflect metadata key for routing versions.
Route modificator. Does modify the current route to react only to certain (configured) versions. If a route contains this modificator, a router is injected that checks for the configured version header.
A route version can contain a "from" version, "until" version and a configurable header name.
If the route version cannot be parsed by the system, v1 is the default. If no matching route with a given version is found, 404 is returned.
Checks if two versioned routes do overlap.
Creates a unique hash for given version information. Is generally used to register the different versions of a route so that no conflicts exist in express.
A sha256 hash of the route information.
Checks if a given version number is valid. A version is valid if:
Typeguard that checks if a given route is a version-router (i.e. a route that'll never hit it's function since the middleware will route to another function).
Typeguard that checks if a given route is a versioned route (i.e. already contains information about from and until versions).
Generated using TypeDoc
Router "route". Does the magic to route to the correct versioned route. Contains no real (i.e. empty) route function, since the configured middleware will redirect anyway.