RoutesCommand

public struct RoutesCommand : Command, ServiceType

Displays all routes registered to the Application‘s Router in an ASCII-formatted table.

$ swift run Run routes
+------+------------------+
| GET  | /search          |
+------+------------------+
| GET  | /hash/:string    |
+------+------------------+

A colon preceding a path component indicates a variable parameter. A colon with no text following is a parameter whose result will be discarded.

An asterisk indicates a catch-all. Any path components after a catch-all will be discarded and ignored.