mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 23:45:48 +01:00
⚡ Make proxied requests for calendar
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user