basePrefix static method

void basePrefix(
  1. String prefix
)

Sets the base prefix for all routes.

Implementation

static void basePrefix(String prefix) {
  Router()._prefix =
      prefix.endsWith("/") ? prefix.substring(0, prefix.length - 1) : prefix;
}