We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a97a5a5 commit e1f39f7Copy full SHA for e1f39f7
src/xivapi.service.ts
@@ -63,7 +63,8 @@ export class XivapiService {
63
if (this.apiKey !== undefined) {
64
queryParams = queryParams.set('key', this.apiKey);
65
}
66
- return this.http.get<any>(`/Search`, {params: queryParams});
+ const baseUrl: string = options.staging ? XivapiService.STAGING_API_BASE_URL : XivapiService.API_BASE_URL;
67
+ return this.http.get<any>(`${baseUrl}/Search`, {params: queryParams});
68
69
70
/**
0 commit comments