]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/Sonarr.vue
Add Prometheus custom component
[github/bastienwirtz/homer.git] / src / components / services / Sonarr.vue
index 8cebac45432fdaa7ceb2fe3cf7a107c48533eb27..0270255995bfe9e35625d95c0aef81daf39c4053 100644 (file)
@@ -70,9 +70,8 @@ export default {
   },
   methods: {
     fetchConfig: function () {
-      fetch(`${this.item.url}/api/health`, {
+      fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, {
         credentials: "include",
-        headers: { "X-Api-Key": `${this.item.apikey}` },
       })
         .then((response) => {
           if (response.status != 200) {
@@ -95,9 +94,8 @@ export default {
           console.error(e);
           this.serverError = true;
         });
-      fetch(`${this.item.url}/api/queue`, {
+      fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, {
         credentials: "include",
-        headers: { "X-Api-Key": `${this.item.apikey}` },
       })
         .then((response) => {
           if (response.status != 200) {