route library

Classes

Route
Router
Route registration DSL.

Constants

routeDumpEnvVar → const String
Environment variable that makes the server print its routing table and exit instead of binding a port.
routeDumpMarker → const String
Marks the start of the machine-readable payload, so the CLI can find it in output that also contains the app's own boot logging.

Functions

describeRoutes() String
Serialises the registered routes as JSON.
dumpRoutesIfRequested() → void
Prints the routing table and exits when routeDumpEnvVar is set.