rework LAN display and service launchability

This commit is contained in:
Matt Hill
2021-03-04 23:57:02 -07:00
committed by Keagan McClelland
parent daf701a76c
commit deb0b1e561
14 changed files with 152 additions and 64 deletions

View File

@@ -7,8 +7,8 @@ import { ConfigService } from '../config.service'
export function ApiServiceFactory (config: ConfigService, http: HttpService, appModel: AppModel, serverModel: ServerModel) {
if (config.api.useMocks) {
return new MockApiService(appModel, serverModel)
return new MockApiService(appModel, serverModel, config)
} else {
return new LiveApiService(http, appModel, serverModel)
return new LiveApiService(http, appModel, serverModel, config)
}
}