mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
vue_visgraph: add relationship links with relations
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user