diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 260a9537a..a78403ce6 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 11a90f602..7c60dbe13 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -125,5 +125,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/es/common.json b/public/locales/es/common.json index 3423a4077..ffb824ec2 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index 0e79661e2..3df79e172 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -125,5 +125,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/it/common.json b/public/locales/it/common.json index 9ede53a3a..fe00a626d 100644 --- a/public/locales/it/common.json +++ b/public/locales/it/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/nb-NO/common.json b/public/locales/nb-NO/common.json index 40d9d35b0..98e08cb45 100644 --- a/public/locales/nb-NO/common.json +++ b/public/locales/nb-NO/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index dbb7b3de6..ac5d6a991 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json index acd5d31b9..33e478806 100644 --- a/public/locales/pt/common.json +++ b/public/locales/pt/common.json @@ -125,5 +125,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/ru/common.json b/public/locales/ru/common.json index ecd00b105..a7197e8e7 100644 --- a/public/locales/ru/common.json +++ b/public/locales/ru/common.json @@ -114,5 +114,5 @@ "apps": "Applications", "clients": "Clients", "messages": "Messages" - }, + } } diff --git a/public/locales/zh-CN/common.json b/public/locales/zh-CN/common.json index bb02bd828..bf19bdb63 100644 --- a/public/locales/zh-CN/common.json +++ b/public/locales/zh-CN/common.json @@ -114,5 +114,5 @@ "apps": "Aplicações", "clients": "Clientes", "messages": "Mensagens" - }, + } } diff --git a/src/components/services/widget.jsx b/src/components/services/widget.jsx index 43ea46c2e..86888a475 100644 --- a/src/components/services/widget.jsx +++ b/src/components/services/widget.jsx @@ -42,7 +42,7 @@ const widgetMappings = { npm: Npm, tautulli: Tautulli, gotify: Gotify, - sabnzbd: Sabnzbd + sabnzbd: SABnzbd }; export default function Widget({ service }) { diff --git a/src/utils/proxies/credentialed.js b/src/utils/proxies/credentialed.js index 4ee15e672..79a94bebd 100644 --- a/src/utils/proxies/credentialed.js +++ b/src/utils/proxies/credentialed.js @@ -8,13 +8,6 @@ export default async function credentialedProxyHandler(req, res) { if (group && service) { const widget = await getServiceWidget(group, service); - var headersData - if(widget.type == "gotify"){ - headersData = {"X-gotify-Key": `${widget.key}`,"Content-Type": "application/json",} - }else{ - headersData = {"X-API-Key": `${widget.key}`,"Content-Type": "application/json",} - } - if (widget) { const url = new URL(formatApiCall(widget.type, { endpoint, ...widget })); @@ -24,6 +17,9 @@ export default async function credentialedProxyHandler(req, res) { if (widget.type === "coinmarketcap") { headers["X-CMC_PRO_API_KEY"] = `${widget.key}`; + } + if(widget.type === "gotify"){ + headers["X-gotify-Key"] = `${widget.key}`; } else { headers["X-API-Key"] = `${widget.key}`; }