Protocol
RoutesBuilder
protocol RoutesBuilder
Topics
Instance Methods
func add(Route)func all(_:use:)Adds the closure to the given path for all HTTP methods besides custom ones, so GET, POST, PUT, PATCH, DELETE, QUERY, HEAD, OPTIONS.func delete(_:routeDescription:use:)func get(_:routeDescription:use:)func group(_:configure:)Creates a newRouterwrapped in the supplied array ofMiddleware.func grouped(_:)Creates a newRouterwrapped in the supplied array ofMiddleware.func on(_:_:maxBodySize:routeDescription:use:)func patch(_:routeDescription:use:)func post(_:routeDescription:use:)func put(_:routeDescription:use:)func query(_:use:)func register(collection: any RouteCollection) async throwsRegisters all of the routes in the group to this router.func responseCompression(HTTPFields.ResponseCompression, force: Bool) -> any RoutesBuilderOverride the response compression settings for a route.