aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/Tdarr.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/services/Tdarr.vue')
-rw-r--r--src/components/services/Tdarr.vue18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/components/services/Tdarr.vue b/src/components/services/Tdarr.vue
index a2734f0..22341d9 100644
--- a/src/components/services/Tdarr.vue
+++ b/src/components/services/Tdarr.vue
@@ -72,14 +72,20 @@ export default {
72 method: "POST", 72 method: "POST",
73 headers: { 73 headers: {
74 "Content-Type": "application/json", 74 "Content-Type": "application/json",
75 "Accept": "application/json", 75 Accept: "application/json",
76 }, 76 },
77 body: JSON.stringify({"headers":{"content-Type":"application/json"},"data":{"collection":"StatisticsJSONDB","mode":"getById","docID":"statistics","obj":{}},"timeout":1000}), 77 body: JSON.stringify({
78 headers: { "content-Type": "application/json" },
79 data: {
80 collection: "StatisticsJSONDB",
81 mode: "getById",
82 docID: "statistics",
83 obj: {},
84 },
85 timeout: 1000,
86 }),
78 }; 87 };
79 const response = await this.fetch( 88 const response = await this.fetch(`/api/v2/cruddb`, options);
80 `/api/v2/cruddb`,
81 options
82 );
83 this.error = false; 89 this.error = false;
84 this.stats = response; 90 this.stats = response;
85 } catch (e) { 91 } catch (e) {