ServerService constructor

ServerService(
  1. App app, {
  2. required AuthServerSettings authServerSettings,
  3. required DbService dbService,
  4. bool disableCORS = false,
})

Implementation

ServerService(
  this.app, {
  required this.authServerSettings,
  required this.dbService,
  this.disableCORS = false,
}) {
  _pipeline = Pipeline();
  serverRunner = ServerRunner(
    app,
    _pipeline,
    disableCORS: disableCORS,
  );
  if (app.dashboardSettings != null) {
    _dashboard = Dashboard(app.dashboardSettings!, app);
  }
}