referrer get users: preparation

This commit is contained in:
2021-06-23 13:40:49 +02:00
parent 3e83891744
commit 6a8c96cdae
3 changed files with 9 additions and 9 deletions

View File

@@ -98,7 +98,7 @@ const postParticipation = (id, payload, method) => {
const postRequestor = (id, payload, method) => {
//console.log('payload', payload);
const body = (payload)? { type: payload.type, id: payload.id } : {};
console.log('body', body);
//console.log('body', body);
const url = `/api/1.0/person/accompanying-course/${id}/requestor.json`;
return fetch(url, {
method: method,
@@ -131,7 +131,7 @@ const postResource = (id, payload, method) => {
default:
body['resource'] = { type: payload.type, id: payload.id };
}
console.log('body', body);
//console.log('body', body);
const url = `/api/1.0/person/accompanying-course/${id}/resource.json`;
return fetch(url, {
method: method,