mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
person: add altnames in the person creation modal
This commit is contained in:
@@ -10,6 +10,13 @@ const getPerson = (id) => {
|
||||
});
|
||||
};
|
||||
|
||||
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');
|
||||
});;
|
||||
|
||||
|
||||
/*
|
||||
* POST a new person
|
||||
*/
|
||||
@@ -48,6 +55,7 @@ const patchPerson = (id, body) => {
|
||||
|
||||
export {
|
||||
getPerson,
|
||||
getPersonAltNames,
|
||||
postPerson,
|
||||
patchPerson
|
||||
};
|
||||
|
Reference in New Issue
Block a user