basePrefix static method
Sets the base prefix for all routes.
Implementation
static void basePrefix(String prefix) {
Router()._prefix =
prefix.endsWith("/") ? prefix.substring(0, prefix.length - 1) : prefix;
}
Sets the base prefix for all routes.
static void basePrefix(String prefix) {
Router()._prefix =
prefix.endsWith("/") ? prefix.substring(0, prefix.length - 1) : prefix;
}