Don't prepend apiBasePath for services backend resources

This commit is contained in:
wiz 2022-05-19 01:54:08 +09:00
parent aa08ac6edc
commit b75f263c7e
No known key found for this signature in database
GPG key ID: A394E332255A6173

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> {