From 533f37d4e113e9e4f943aa5222e1f84c33b8d846 Mon Sep 17 00:00:00 2001 From: andrewtan2000 Date: Mon, 26 Aug 2024 18:03:47 +0800 Subject: [PATCH] Remove Hardcoded x-fields --- service/QuizService.tsx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/service/QuizService.tsx b/service/QuizService.tsx index 41f1b6d..99d0676 100644 --- a/service/QuizService.tsx +++ b/service/QuizService.tsx @@ -8,9 +8,6 @@ export const QuizService = { method: 'POST', headers: { 'Content-Type': 'application/json', - 'x-user-id': '12asd', - 'x-user-email': 'andrewjtgh@gmail.com', - 'x-user-roles': 'student', }, credentials: 'include', body: JSON.stringify({ @@ -43,9 +40,6 @@ export const QuizService = { { headers: { 'Content-Type': 'application/json', - 'x-user-email': 'andrewjtgh@gmail.com', - 'x-user-roles': 'student', - 'x-user-id': '12asd', }, credentials: "include" } @@ -67,9 +61,6 @@ export const QuizService = { { headers: { 'Content-Type': 'application/json', - 'x-user-email': 'andrewjtgh@gmail.com', - 'x-user-roles': 'student', - 'x-user-id': '12asd', }, credentials: "include" } @@ -91,9 +82,6 @@ export const QuizService = { method: 'PUT', headers: { 'Content-Type': 'application/json', - 'x-user-email': 'andrewjtgh@gmail.com', - 'x-user-roles': 'student', - 'x-user-id': '12asd', }, credentials: "include", body: JSON.stringify({ @@ -116,9 +104,6 @@ export const QuizService = { method: 'PATCH', headers: { 'Content-Type': 'application/json', - 'x-user-email': 'andrewjtgh@gmail.com', - 'x-user-roles': 'student', - 'x-user-id': '12asd', }, credentials: "include", }