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