prefix method

RouteMapping prefix(
  1. String prefix
)

Implementation

RouteMapping prefix(String prefix) {
  final newPath = prefix == BASE_PATH
      ? _path
      : _path == BASE_PATH
          ? prefix
          : '$prefix$_path';
  return RouteMapping(methods, newPath);
}