canHandle static method

bool canHandle(
  1. Request request
)

Determines whether or not request is an API call.

Implementation

static bool canHandle(shelf.Request request) {
  return request.url.path.startsWith(apiPrefix);
}