'use strict' const {receivedDevices} = require('./actions') module.exports = { // urls that should be called for the remote actions urls: { fetch: 'https://layla.amazon.de/api/devices/device', }, // called after an remote http call to the device API has been successfully executed postHooks: { // called after the devices data has been fetched fetch: (store, data) => { return new Promise((resolve, reject) => { store.dispatch(receivedDevices(data)) resolve(data) }) } } }