update for new api path

This commit is contained in:
Dario Rekowski on RockPI 2021-04-21 12:33:31 +00:00
parent d19496ddca
commit 3a92e4025a
2 changed files with 4 additions and 11 deletions

View File

@ -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)
},
}

View File

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