forked from DebaucheryLibrarian/traxxx
Added actors page. Added site logos with overview on network page.
This commit is contained in:
22
assets/js/networks/actions.js
Normal file
22
assets/js/networks/actions.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { get } from '../api';
|
||||
|
||||
function initNetworksActions(_store, _router) {
|
||||
async function fetchNetworks({ _commit }, networkId) {
|
||||
const networks = await get(`/networks/${networkId || ''}`);
|
||||
|
||||
return networks;
|
||||
}
|
||||
|
||||
async function fetchNetworkReleases({ _commit }, networkId) {
|
||||
const releases = await get(`/networks/${networkId}/releases`);
|
||||
|
||||
return releases;
|
||||
}
|
||||
|
||||
return {
|
||||
fetchNetworks,
|
||||
fetchNetworkReleases,
|
||||
};
|
||||
}
|
||||
|
||||
export default initNetworksActions;
|
||||
Reference in New Issue
Block a user