mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
19 lines
494 B
JavaScript
19 lines
494 B
JavaScript
import { getSocialIssues } from 'ChillPersonAssets/vuejs/AccompanyingCourse/api.js';
|
|
|
|
/*
|
|
* Load socialActions by socialIssue (id)
|
|
*/
|
|
const getSocialActionByIssue = (id) => {
|
|
const url = `/api/1.0/person/social/social-action/by-social-issue/${id}.json`;
|
|
return fetch(url)
|
|
.then(response => {
|
|
if (response.ok) { return response.json(); }
|
|
throw Error('Error with request resource response');
|
|
});
|
|
};
|
|
|
|
export {
|
|
getSocialIssues,
|
|
getSocialActionByIssue
|
|
};
|