From 4bce071498aeda43e44f9b5f7f60ae11a57c7d6f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Jun 2018 22:12:23 -0400 Subject: [PATCH] expose api service urls --- src/abstractions/api.service.ts | 2 ++ src/services/api.service.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index d3e9bcba7b..cffb70f279 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -24,6 +24,8 @@ import { AttachmentView } from '../models/view/attachmentView'; export abstract class ApiService { urlsSet: boolean; + apiBaseUrl: string; + identityBaseUrl: string; setUrls: (urls: EnvironmentUrls) => void; postIdentityToken: (request: TokenRequest) => Promise; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 2b7218d59c..0e7fe20833 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -29,9 +29,9 @@ import { SyncResponse } from '../models/response/syncResponse'; export class ApiService implements ApiServiceAbstraction { urlsSet: boolean = false; + apiBaseUrl: string; + identityBaseUrl: string; - private apiBaseUrl: string; - private identityBaseUrl: string; private deviceType: string; private isWebClient = false; private usingBaseUrl = false;