Skip to content

Commit

Permalink
Remove QuizService hardcode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtan2000 committed Aug 27, 2024
1 parent 925cb32 commit e776662
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions service/QuizService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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"
}
Expand All @@ -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"
}
Expand All @@ -91,13 +82,10 @@ 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({
"attemptOption": attempt,
attemptOption: attempt,
}),
}
);
Expand All @@ -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",
}
Expand Down

0 comments on commit e776662

Please sign in to comment.