From b75f263c7e9405542964fba67d4a72360cdeabad Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 19 May 2022 01:54:08 +0900 Subject: [PATCH] Don't prepend apiBasePath for services backend resources --- frontend/src/app/services/api.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/services/api.service.ts b/frontend/src/app/services/api.service.ts index 9b096394a..8ef656013 100644 --- a/frontend/src/app/services/api.service.ts +++ b/frontend/src/app/services/api.service.ts @@ -78,23 +78,23 @@ export class ApiService { amount: amount, orderId: orderId, }; - return this.httpClient.post(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations', params); + return this.httpClient.post(this.apiBaseUrl + '/api/v1/donations', params); } getDonation$(): Observable { - return this.httpClient.get(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations'); + return this.httpClient.get(this.apiBaseUrl + '/api/v1/donations'); } getTranslators$(): Observable { - return this.httpClient.get(this.apiBaseUrl + this.apiBasePath + '/api/v1/translators'); + return this.httpClient.get(this.apiBaseUrl + '/api/v1/translators'); } getContributor$(): Observable { - return this.httpClient.get(this.apiBaseUrl + this.apiBasePath + '/api/v1/contributors'); + return this.httpClient.get(this.apiBaseUrl + '/api/v1/contributors'); } checkDonation$(orderId: string): Observable { - return this.httpClient.get(this.apiBaseUrl + this.apiBasePath + '/api/v1/donations/check?order_id=' + orderId); + return this.httpClient.get(this.apiBaseUrl + '/api/v1/donations/check?order_id=' + orderId); } getInitData$(): Observable {