Merge pull request #1670 from mempool/wiz/fix-about-page-resource-URLs

Don't prepend apiBasePath for services backend resources
This commit is contained in:
wiz 2022-05-19 18:51:43 +09:00 committed by GitHub
commit 50b040524e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,23 +78,23 @@ export class ApiService {
amount: amount, amount: amount,
orderId: orderId, orderId: orderId,
}; };
return this.httpClient.post<any>(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations', params); return this.httpClient.post<any>(this.apiBaseUrl + '/api/v1/donations', params);
} }
getDonation$(): Observable<any[]> { getDonation$(): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations'); return this.httpClient.get<any[]>(this.apiBaseUrl + '/api/v1/donations');
} }
getTranslators$(): Observable<ITranslators> { getTranslators$(): Observable<ITranslators> {
return this.httpClient.get<ITranslators>(this.apiBaseUrl + this.apiBasePath + '/api/v1/translators'); return this.httpClient.get<ITranslators>(this.apiBaseUrl + '/api/v1/translators');
} }
getContributor$(): Observable<any[]> { getContributor$(): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/contributors'); return this.httpClient.get<any[]>(this.apiBaseUrl + '/api/v1/contributors');
} }
checkDonation$(orderId: string): Observable<any[]> { checkDonation$(orderId: string): Observable<any[]> {
return this.httpClient.get<any[]>(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations/check?order_id=' + orderId); return this.httpClient.get<any[]>(this.apiBaseUrl + '/api/v1/donations/check?order_id=' + orderId);
} }
getInitData$(): Observable<WebsocketResponse> { getInitData$(): Observable<WebsocketResponse> {