mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
visgraph: adding endpoint to get list of relations
This commit is contained in:
@@ -110,6 +110,14 @@ const getRelationshipsByPerson = (person) => {
|
||||
`/api/1.0/relations/relationship/by-person/${person._id}.json`)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return list of relations
|
||||
* @returns {Promise<Response>}
|
||||
*/
|
||||
const getRelationsList = () => {
|
||||
return getFetch(`/api/1.0/relations/relation.json`)
|
||||
}
|
||||
|
||||
/**
|
||||
* @function postRelationship
|
||||
* @param person
|
||||
@@ -132,5 +140,6 @@ export {
|
||||
getHouseholdByPerson,
|
||||
getCoursesByPerson,
|
||||
getRelationshipsByPerson,
|
||||
postRelationship
|
||||
getRelationsList,
|
||||
postRelationship,
|
||||
}
|
||||
|
Reference in New Issue
Block a user