16 lines
321 B
JavaScript
16 lines
321 B
JavaScript
|
import { get } from '../api';
|
||
|
|
||
|
function initReleasesActions(_store, _router) {
|
||
|
async function fetchReleases({ _commit }, releaseId) {
|
||
|
const releases = await get(`/releases/${releaseId || ''}`);
|
||
|
|
||
|
return releases;
|
||
|
}
|
||
|
|
||
|
return {
|
||
|
fetchReleases,
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export default initReleasesActions;
|