add method

void add(
  1. String path,
  2. HttpMethod method,
  3. RequestHandler handler, {
  4. FilterConfig? filterConfig,
})

Implementation

void add(
  String path,
  HttpMethod method,
  RequestHandler handler, {
  FilterConfig? filterConfig,
}) =>
    routes.add(
      Route(
        path: path,
        method: method,
        handler: handler,
        filterConfig: filterConfig,
      ),
    );