mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
AddPerson: add civility when creating a person
This commit is contained in:
@@ -14,8 +14,13 @@ const getPersonAltNames = () =>
|
||||
fetch('/api/1.0/person/config/alt_names.json').then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
throw Error('Error with request resource response');
|
||||
});;
|
||||
});
|
||||
|
||||
const getCivilities = () =>
|
||||
fetch('/api/1.0/main/civility.json').then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
throw Error('Error with request resource response');
|
||||
});
|
||||
|
||||
/*
|
||||
* POST a new person
|
||||
@@ -56,6 +61,7 @@ const patchPerson = (id, body) => {
|
||||
export {
|
||||
getPerson,
|
||||
getPersonAltNames,
|
||||
getCivilities,
|
||||
postPerson,
|
||||
patchPerson
|
||||
};
|
||||
|
Reference in New Issue
Block a user