20 lines
547 B
JavaScript
20 lines
547 B
JavaScript
'use strict'
|
|
|
|
const {receivedUserData} = require('./actions')
|
|
|
|
module.exports = {
|
|
// urls that should be called for the remote actions
|
|
urls: {
|
|
fetch: 'https://layla.amazon.de/api/bootstrap?version=1.24.2445.0',
|
|
},
|
|
// called after an remote http call to the user data API has been successfully executed
|
|
postHooks: {
|
|
// called after the user data has been fetched
|
|
fetch: (store, data) => {
|
|
return new Promise((resolve, reject) => {
|
|
store.dispatch(receivedUserData(data))
|
|
resolve(data)
|
|
})
|
|
}
|
|
}
|
|
} |