mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
Fix: calendar integration broken in v0.9.0 (#3566)
This commit is contained in:
parent
fb58a66f3b
commit
d42271acf6
1 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ import { formatApiCall } from "utils/proxy/api-helpers";
|
||||||
import createLogger from "utils/logger";
|
import createLogger from "utils/logger";
|
||||||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||||
import widgets from "widgets/widgets";
|
import widgets from "widgets/widgets";
|
||||||
|
import calendarProxyHandler from "widgets/calendar/proxy";
|
||||||
|
|
||||||
const logger = createLogger("servicesProxy");
|
const logger = createLogger("servicesProxy");
|
||||||
|
|
||||||
|
@ -18,8 +19,8 @@ export default async function handler(req, res) {
|
||||||
const serviceProxyHandler = widget.proxyHandler || genericProxyHandler;
|
const serviceProxyHandler = widget.proxyHandler || genericProxyHandler;
|
||||||
|
|
||||||
if (serviceProxyHandler instanceof Function) {
|
if (serviceProxyHandler instanceof Function) {
|
||||||
// quick return for no endpoint services
|
// quick return for no endpoint services, calendar is an exception
|
||||||
if (!req.query.endpoint) {
|
if (!req.query.endpoint || serviceProxyHandler === calendarProxyHandler) {
|
||||||
return serviceProxyHandler(req, res);
|
return serviceProxyHandler(req, res);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue