mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update for new api path
This commit is contained in:
parent
d19496ddca
commit
3a92e4025a
@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user