Update Sonarr and Radarr API

This commit is contained in:
Duy NGUYEN 2022-02-01 16:39:15 +01:00
parent 68b10120c9
commit cb154a6818
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ export default {
},
methods: {
fetchConfig: function () {
this.fetch(`/api/health?apikey=${this.item.apikey}`)
this.fetch(`/api/v3/health?apikey=${this.item.apikey}`)
.then((health) => {
this.warnings = 0;
this.errors = 0;
@ -64,7 +64,7 @@ export default {
console.error(e);
this.serverError = true;
});
this.fetch(`/api/queue?apikey=${this.item.apikey}`)
this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`)
.then((queue) => {
this.activity = 0;
for (var i = 0; i < queue.length; i++) {

View File

@ -49,7 +49,7 @@ export default {
},
methods: {
fetchConfig: function () {
this.fetch(`/api/health?apikey=${this.item.apikey}`)
this.fetch(`/api/v3/health?apikey=${this.item.apikey}`)
.then((health) => {
this.warnings = 0;
this.errors = 0;
@ -65,7 +65,7 @@ export default {
console.error(e);
this.serverError = true;
});
this.fetch(`/api/queue?apikey=${this.item.apikey}`)
this.fetch(`/api/v3/queue?apikey=${this.item.apikey}`)
.then((queue) => {
this.activity = 0;
for (var i = 0; i < queue.length; i++) {