Vapor Documentation Beta

Protocol Route​Collection

public protocol RouteCollection

Groups collections of routes together for adding to a router.

Requirements

boot(routes:​)

func boot(routes: RoutesBuilder) throws

Registers routes to the incoming router.

Parameters

routes Routes​Builder

RoutesBuilder to register any new routes to.