diff --git a/backend/ipLab/data.mv.db b/backend/ipLab/data.mv.db index cac197a..d358ec9 100644 Binary files a/backend/ipLab/data.mv.db and b/backend/ipLab/data.mv.db differ diff --git a/frontend/src/services/DataService.js b/frontend/src/services/DataService.js index 2f755b5..d583004 100644 --- a/frontend/src/services/DataService.js +++ b/frontend/src/services/DataService.js @@ -31,12 +31,12 @@ export default class DataService { } static async create(url, data) { - const response = await axios.post(this.dataUrlPrefix + url, data); + const response = await axios.post(this.dataUrlPrefix + url, data, {headers: {"Authorization": getTokenForHeader()}}); return true; } static async update(url, data) { - const response = await axios.put(this.dataUrlPrefix + url, data); + const response = await axios.put(this.dataUrlPrefix + url, data, {headers: {"Authorization": getTokenForHeader()}}); return true; }