group method

Router<T> group(
  1. String path
)

Create and attach a subrouter for a path. If one already exists they are merged.

Implementation

Router<T> group(final String path) {
  final subRouter = Router<T>();
  attach(path, subRouter);
  return subRouter;
}