From 662915628364e0fa86fd0498ef3a880e48ec1d79 Mon Sep 17 00:00:00 2001 From: zoreet Date: Wed, 2 Jun 2021 09:18:24 +0200 Subject: [PATCH] update path to api --- src/components/Day.vue | 4 ++-- src/views/Report.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Day.vue b/src/components/Day.vue index 8019799..325b128 100644 --- a/src/components/Day.vue +++ b/src/components/Day.vue @@ -184,7 +184,7 @@ export default { return } axios - .get('https://api.zoreet.com/days/' + this.dayId, { + .get('/api/days/' + this.dayId, { headers: { Authorization: 'Bearer ' + this.token }, }) .then(response => { @@ -241,7 +241,7 @@ export default { axios .post( - 'https://api.zoreet.com/days/' + this.dayId, + '/api/days/' + this.dayId, { tasks: JSON.stringify(this.tasks) }, { headers: { Authorization: 'Bearer ' + this.token } } ) diff --git a/src/views/Report.vue b/src/views/Report.vue index ab11309..3e34368 100644 --- a/src/views/Report.vue +++ b/src/views/Report.vue @@ -247,7 +247,7 @@ export default { } axios .get( - 'https://api.zoreet.com/reports/' + + '/api/reports/' + this.startDate + '/' + this.endDate,