diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 260a9537..a78403ce 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 11a90f60..7c60dbe1 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 3423a407..ffb824ec 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 0e79661e..3df79e17 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 9ede53a3..fe00a626 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 40d9d35b..98e08cb4 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 dbb7b3de..ac5d6a99 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 acd5d31b..33e47880 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 ecd00b10..a7197e8e 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 bb02bd82..bf19bdb6 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 43ea46c2..86888a47 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 4ee15e67..79a94beb 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}`; }