ServerService constructor
ServerService(
- App app, {
- required AuthServerSettings authServerSettings,
- required DbService dbService,
- 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);
}
}