mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
first impl for create form
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
|
||||
const findSocialActionsBySocialIssue = (id) => {
|
||||
const url = `/api/1.0/person/social/social-action/by-social-issue/${id}.json`;
|
||||
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error("Error while retrieving social actions " + response.status
|
||||
+ " " + response.statusText)
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.catch(err => {
|
||||
throw err
|
||||
})
|
||||
;
|
||||
};
|
||||
|
||||
export {
|
||||
findSocialActionsBySocialIssue
|
||||
};
|
Reference in New Issue
Block a user