hide console log, remove unused api endpoint method

This commit is contained in:
2021-07-01 10:30:39 +02:00
parent 5861a86289
commit fd94f27eee
3 changed files with 3 additions and 13 deletions

View File

@@ -192,15 +192,6 @@ const getListOrigins = () => {
});
}
const getOrigin = (id) => {
const url = `/api/1.0/person/accompanying-period/origin/${id}.json`;
return fetch(url)
.then(response => {
if (response.ok) { return response.json(); }
throw Error('Error with request resource response');
});
}
export {
getAccompanyingCourse,
patchAccompanyingCourse,
@@ -212,6 +203,5 @@ export {
getUsers,
whoami,
getListOrigins,
getOrigin,
postSocialIssue
};