Make proxied requests for calendar

This commit is contained in:
Thomas "ajnart" Camlong
2022-06-01 16:19:32 +02:00
parent 56b6347824
commit cad160010d
2 changed files with 5 additions and 8 deletions

View File

@@ -37,11 +37,7 @@ export default function CalendarComponent(props: any) {
if (!service || !service.apiKey) {
return Promise.resolve({ data: [] });
}
return axios.get(`/api/modules/calendar?type=${type}`, {
data: {
body: service,
},
});
return axios.post(`/api/modules/calendar?type=${type}`, { ...service });
}
useEffect(() => {