Enhancement: multiple widgets per service (#4338)

This commit is contained in:
shamoon
2024-11-27 02:33:40 -08:00
parent 385511f773
commit 907abee1aa
46 changed files with 210 additions and 169 deletions

View File

@@ -5,10 +5,10 @@ import createLogger from "utils/logger";
const logger = createLogger("calendarProxyHandler");
export default async function calendarProxyHandler(req, res) {
const { group, service, endpoint } = req.query;
const { group, service, endpoint, index } = req.query;
if (group && service) {
const widget = await getServiceWidget(group, service);
const widget = await getServiceWidget(group, service, index);
const integration = widget.integrations?.find((i) => i.name === endpoint);
if (integration) {