Previously frontend is not able to call get questions due to its authorization token not properly passed to the question service. Change the question service such that it takes token from the header instead of the request body.
Additionally, change update question to allow partial input.
Then change the return type of verifyUser to ExtractedUser since it has an additionally id filed compared to User.
Schemas should ideally be placed in common folder after this is done.
Previously frontend is not able to call get questions due to its authorization token not properly passed to the question service. Change the question service such that it takes token from the header instead of the request body. Additionally, change update question to allow partial input. Then change the return type of
verifyUser
toExtractedUser
since it has an additionallyid
filed compared toUser
. Schemas should ideally be placed in common folder after this is done.