Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public getUrl(path: string): string {
- const base = this.appConfig.serviceEndpoints['platformSupport'];
- const version = 1;
- let versionSegment = `api-version=${version}`;
- path.indexOf('?') > -1 ? versionSegment = `&${versionSegment}` : versionSegment = `?${versionSegment}`
- return `${base}/${path}${versionSegment}`;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement