getWithMiddleware

void getWithMiddleware(

  1. String path,
  2. List<JSFunction> handlers
)

GET with middleware chain

Implementation

void getWithMiddleware(String path, List<JSFunction> handlers) {
  final jsHandlers = handlers.toJS;
  final getFn = (this as JSObject)['get'] as JSFunction;
  getFn.callAsFunction(this, path.toJS, jsHandlers);
}