CS3219-AY2425S1 / cs3219-ay2425s1-project-g20

nus-cs3219-ay2425s1-cs3219-ay2425s1-project-project-template created by GitHub Classroom
MIT License
2 stars 1 forks source link

Fix Authorization Problem #52

Closed asaierika closed 1 week ago

asaierika commented 1 week ago

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.