mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix html5 birthdate field on modal form OnTheFly
This commit is contained in:
@@ -11,20 +11,7 @@ const getPerson = (id) => {
|
||||
};
|
||||
|
||||
/*
|
||||
* GET a thirdparty by id
|
||||
* TODO move in ChillThirdpartyAssets !!
|
||||
*/
|
||||
const getThirdparty = (id) => {
|
||||
const url = `/api/1.0/thirdparty/thirdparty/${id}.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
throw Error('Error with request resource response');
|
||||
});
|
||||
};
|
||||
|
||||
/*
|
||||
* POST a person
|
||||
* POST a new person
|
||||
*/
|
||||
const postPerson = (body) => {
|
||||
const url = `/api/1.0/person/person.json`;
|
||||
@@ -43,6 +30,5 @@ const postPerson = (body) => {
|
||||
|
||||
export {
|
||||
getPerson,
|
||||
getThirdparty,
|
||||
postPerson
|
||||
};
|
||||
|
Reference in New Issue
Block a user