I am trying to configure fullcalendar 5 to fetch api from a database. I want to pass additional query parameters to the request in addition to start and end. I have tried to do this way but I see that the request is always ignoring additional parameters.
events: {
url: 'http://localhost:4000/api/timesheet',
type: 'GET',
data: {
user: 'something',
project: 'somethingelse'
},
error: function () {
alert('there was an error while fetching events!');
},
color: 'yellow',
textColor: 'black'
},
The url of the request is:
http://localhost:4000/api/timesheet?start=2024-05-26T00:00:00+02:00&end=2024-07-07T00:00:00+02:00
my expectation is:
http://localhost:4000/api/timesheet?start=2024-05-26T00:00:00+02:00&end=2024-07-07T00:00:00+02:00&user=something&project=somethingelse