vue_visgraph: add relationship links with relations

This commit is contained in:
2021-10-27 19:55:24 +02:00
parent f834bb3bd6
commit 92c1bf15cc
5 changed files with 104 additions and 23 deletions

View File

@@ -89,12 +89,12 @@ const getCoursesByPerson = (person) => {
}
/**
* @function getRelationshipByPerson
* @function getRelationshipsByPerson
* @param person
* @returns {Promise<Response>}
*/
const getRelationshipByPerson = (person) => {
//console.log('getRelationshipByPerson', person.id)
const getRelationshipsByPerson = (person) => {
//console.log('getRelationshipsByPerson', person.id)
return getFetch(
`/api/1.0/relations/relationship/by-person/${person._id}.json`)
}
@@ -120,6 +120,6 @@ const postRelationship = (person) => {
export {
getHouseholdByPerson,
getCoursesByPerson,
getRelationshipByPerson,
getRelationshipsByPerson,
postRelationship
}