PathController.fromHttpRequest constructor

PathController.fromHttpRequest(
  1. HttpRequest request
)

Implementation

PathController.fromHttpRequest(HttpRequest request)
    : notProcessedValues = List.from(request.uri.pathSegments),
      calledPath = request.uri.path,
      queryParameters = request.uri.queryParameters {
  next = notProcessedValues.isEmpty ? "*root" : notProcessedValues.first;
}