PathComponent

  • This lets us use PathComponents when registering route parameters, and then get the string that req.parameters.get() wants from inside the route handler. Vapor uses “:parameter” when registering the route parameter, but uses “parameter” when retrieving it.

    Declaration

    Swift

    var paramString: String { get }