FunctionalRouteDefinition.route constructor

FunctionalRouteDefinition.route(
  1. HTTPMethod method,
  2. String path,
  3. RequestHandler handler
)

Implementation

FunctionalRouteDefinition.route(
    this.method, this.path, RequestHandler handler)
    : _middleware = null,
      _requestHandler = useRequestHandler(handler),
      super(RouteDefinitionType.route) {
  route = RouteMapping([method], path);
}