-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
8 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
export class Region { | ||
readonly trackUrl: string; | ||
readonly apiUrl: string; | ||
readonly trackPushUrl?: string; | ||
|
||
constructor(trackUrl: string, apiUrl: string, trackPushUrl?: string) { | ||
constructor(trackUrl: string, apiUrl: string) { | ||
this.trackUrl = trackUrl; | ||
this.apiUrl = apiUrl; | ||
this.trackPushUrl = trackPushUrl; | ||
} | ||
} | ||
|
||
export const RegionUS = new Region('https://track.customer.io/api/v1', 'https://api.customer.io/v1', 'https://track.customer.io/push'); | ||
export const RegionEU = new Region('https://track-eu.customer.io/api/v1', 'https://api-eu.customer.io/v1', 'https://track-eu.customer.io/push'); | ||
export const RegionUS = new Region('https://track.customer.io/api/v1', 'https://api.customer.io/v1'); | ||
export const RegionEU = new Region('https://track-eu.customer.io/api/v1', 'https://api-eu.customer.io/v1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters