diff --git a/frontend/src/apis/communityAPI.js b/frontend/src/apis/communityAPI.js index c7511bda2..4af1ea901 100644 --- a/frontend/src/apis/communityAPI.js +++ b/frontend/src/apis/communityAPI.js @@ -36,9 +36,7 @@ const communityAPI = { return apiGet(CONFIG.COMMUNITY_API_URL + 'getBalance/' + session_id) }, transactions: async (session_id) => { - return apiGet( - CONFIG.COMMUNITY_API__URL + 'listTransactions/1/25/ASC/' + session_id, - ) + return apiGet(CONFIG.COMMUNITY_API__URL + 'listTransactions/1/25/ASC/' + session_id) }, /*create: async (session_id, email, amount, memo, target_date = new Date() ) => { const payload = { @@ -49,7 +47,7 @@ const communityAPI = { memo, auto_sign: true, } - return apiPost(CONFIG.COMMUNITY_API_TRANSACTION_CREATION_URL + 'ajaxCreate/', payload) + return apiPost(CONFIG.COMMUNITY_API__URL + 'createCoins/', payload) },*/ send: async (session_id, email, amount, memo) => { const payload = { @@ -59,7 +57,7 @@ const communityAPI = { memo, auto_sign: true, } - return apiPost(CONFIG.COMMUNITY_API_TRANSACTION_SEND_COINS + 'sendCoins/', payload) + return apiPost(CONFIG.COMMUNITY_API__URL + 'sendCoins/', payload) }, } diff --git a/frontend/src/config/index.js b/frontend/src/config/index.js index d74fb49d4..dd73b3034 100644 --- a/frontend/src/config/index.js +++ b/frontend/src/config/index.js @@ -11,12 +11,7 @@ const environment = { const server = { LOGIN_API_URL: process.env.LOGIN_API_URL || 'http://localhost/login_api/', - COMMUNITY_API_STATE_BALANCE_URL: - process.env.COMMUNITY_API_STATE_BALANCE_URL || 'http://localhost/api/', - // Schöpfung - // COMMUNITY_API_TRANSACTION_CREATION_URL: process.env.COMMUNITY_API_TRANSACTION_CREATION_URL || 'http://localhost/transaction-creations/', - COMMUNITY_API_TRANSACTION_SEND_COINS: - process.env.COMMUNITY_API_TRANSACTION_SEND_COINS || 'http://localhost/api/', + COMMUNITY_API_URL:process.env.COMMUNITY_API_URL || 'http://localhost/api/', } const CONFIG = {