Skip to content

Commit e1f39f7

Browse files
committed
fix: fixed an issue with Search endpoint being wrong
1 parent a97a5a5 commit e1f39f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/xivapi.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ export class XivapiService {
6363
if (this.apiKey !== undefined) {
6464
queryParams = queryParams.set('key', this.apiKey);
6565
}
66-
return this.http.get<any>(`/Search`, {params: queryParams});
66+
const baseUrl: string = options.staging ? XivapiService.STAGING_API_BASE_URL : XivapiService.API_BASE_URL;
67+
return this.http.get<any>(`${baseUrl}/Search`, {params: queryParams});
6768
}
6869

6970
/**

0 commit comments

Comments
 (0)