Skip to content
Permalink
Browse files

fix: fixed an issue with Search endpoint being wrong

  • Loading branch information
Supamiu committed Oct 8, 2018
1 parent a97a5a5 commit e1f39f795753a7c81d4eaffba4fef069b60f1dbf
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/xivapi.service.ts
@@ -63,7 +63,8 @@ export class XivapiService {
if (this.apiKey !== undefined) {
queryParams = queryParams.set('key', this.apiKey);
}
return this.http.get<any>(`/Search`, {params: queryParams});
const baseUrl: string = options.staging ? XivapiService.STAGING_API_BASE_URL : XivapiService.API_BASE_URL;
return this.http.get<any>(`${baseUrl}/Search`, {params: queryParams});
}

/**

0 comments on commit e1f39f7

Please sign in to comment.
You can’t perform that action at this time.