serveApp function

Handler serveApp(
  1. AppHandler handler
)

Returns a shelf handler that serves the provided component and related assets

Implementation

Handler serveApp(AppHandler handler) {
  _checkInitialized('serveApp');
  return createHandler((request, render) {
    return handler(request, (app) {
      return render(_createSetup(app));
    });
  });
}