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