addRoutes method

void addRoutes (
  1. [Service service]
)

Generates RESTful routes pointing to this class's methods.

Implementation

void addRoutes([Service service]) {
  _addRoutesInner(service ?? this, bootstrappers);
}