mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-06 21:57:48 +01:00
Fix: calendar integration broken in v0.9.0 (#3566)
This commit is contained in:
@@ -2,6 +2,7 @@ import { formatApiCall } from "utils/proxy/api-helpers";
|
||||
import createLogger from "utils/logger";
|
||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
import widgets from "widgets/widgets";
|
||||
import calendarProxyHandler from "widgets/calendar/proxy";
|
||||
|
||||
const logger = createLogger("servicesProxy");
|
||||
|
||||
@@ -18,8 +19,8 @@ export default async function handler(req, res) {
|
||||
const serviceProxyHandler = widget.proxyHandler || genericProxyHandler;
|
||||
|
||||
if (serviceProxyHandler instanceof Function) {
|
||||
// quick return for no endpoint services
|
||||
if (!req.query.endpoint) {
|
||||
// quick return for no endpoint services, calendar is an exception
|
||||
if (!req.query.endpoint || serviceProxyHandler === calendarProxyHandler) {
|
||||
return serviceProxyHandler(req, res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user