mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
rework endpoints and enable setting custom marketplace urls
This commit is contained in:
committed by
Aiden McClelland
parent
7253cd002e
commit
c4a5cf1c51
@@ -5,8 +5,8 @@ import { ConfigService } from '../config.service'
|
||||
|
||||
export function ApiServiceFactory (config: ConfigService, http: HttpService) {
|
||||
if (config.mocks.enabled) {
|
||||
return new MockApiService(http)
|
||||
return new MockApiService(config, http)
|
||||
} else {
|
||||
return new LiveApiService(http)
|
||||
return new LiveApiService(config, http)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user