handle method

  1. @override
void handle(
  1. String endpoint,
  2. EndpointHandler handler
)
override

Implementation

@override
void handle(String endpoint, EndpointHandler handler) {
  var method = ShelfApiRequest.methodFor(endpoint);
  _router.add(
      method, '/${_pathSegment(endpoint)}', _wrap(method, endpoint, handler));
}