Skip to content

Class

RoutesCommand

Displays all routes registered to the Application’s Router in an ASCII-formatted table.
final class RoutesCommand

Overview

$ 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.

The path will be displayed with the same syntax that is used to register a route.

Topics

Structures

Instance Properties

  • help
    Text that will be displayed when --help is passed.

Instance Methods

Relationships

Conforms To

  • ConsoleKitCommands.AnyAsyncCommand
  • ConsoleKitCommands.AsyncCommand
  • Swift.Sendable
  • Swift.SendableMetatype