Skip to content

Commit 5c0208a

Browse files
committed
fix: change get to post for calendar data request
1 parent 34f5fc1 commit 5c0208a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

resources/frontend/core/modules/Calendar/services/calendar.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export default class CalendarService {
77
* @param {null|number|number[]} projectId
88
*/
99
get(startAt, endAt, projectId = null) {
10-
return axios.get('tasks/calendar', { params: { start_at: startAt, end_at: endAt, project_id: projectId } });
10+
return axios.post('tasks/calendar', { start_at: startAt, end_at: endAt, project_id: projectId });
1111
}
1212
}

routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
->name('tasks.destroy');
176176
$router->post('tasks/activity', [TaskActivityController::class, 'index'])
177177
->name('task.activity');
178-
$router->get('tasks/calendar', [TaskController::class, 'calendar'])
178+
$router->post('tasks/calendar', [TaskController::class, 'calendar'])
179179
->name('tasks.calendar');
180180

181181
// Gantt routes

0 commit comments

Comments
 (0)