group method

void group(
  1. RouteOptions options,
  2. Function registrar
)

Implementation

void group(RouteOptions options, Function registrar) {
  // add the group attributes to stack
  _groupStack.add(options);
  // load routes
  registrar();
  // remove latest group attributes from stack
  _groupStack.removeLast();
}