mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
prep for live mocks
This commit is contained in:
committed by
Aiden McClelland
parent
21dd8fa618
commit
c5f2379c6e
@@ -4,9 +4,9 @@ import { LiveApiService } from './live-api.service'
|
||||
import { ConfigService } from '../config.service'
|
||||
|
||||
export function ApiServiceFactory (config: ConfigService, http: HttpService) {
|
||||
if (config.api.mocks) {
|
||||
return new MockApiService(config)
|
||||
if (config.mocks.enabled) {
|
||||
return new MockApiService(http)
|
||||
} else {
|
||||
return new LiveApiService(http, config)
|
||||
return new LiveApiService(http)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user