mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
pass options in search endpoint
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
*
|
||||
* @id integer - id of accompanyingCourse
|
||||
*/
|
||||
let getAccompanyingCourse = (id) => { //tmp
|
||||
const url = `/api/1.0/person/accompanying-course/${id}.json`
|
||||
const getAccompanyingCourse = (id) => {
|
||||
const url = `/api/1.0/person/accompanying-course/${id}.json`;
|
||||
return fetch(url)
|
||||
.then(response => {
|
||||
if (response.ok) { return response.json(); }
|
||||
@@ -21,8 +21,8 @@ let getAccompanyingCourse = (id) => { //tmp
|
||||
* @person_id integer - id of person
|
||||
* @method string - POST or DELETE
|
||||
*/
|
||||
let postParticipation = (id, person_id, method) => {
|
||||
const url = `/api/1.0/person/accompanying-course/${id}/participation.json`
|
||||
const postParticipation = (id, person_id, method) => {
|
||||
const url = `/api/1.0/person/accompanying-course/${id}/participation.json`;
|
||||
return fetch(url, {
|
||||
method: method,
|
||||
headers: {
|
||||
|
Reference in New Issue
Block a user