-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: user preferences backend #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is very clean and great. Just one comment on the response.
Switched to using POST body rather than URL queries
Made the following updates:
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Description
This adds
POST /api/users
with optional queriestimeZone
,questionTypes
,questionDifficulty
,codingLanguage
. It uses a new type UserPreferences which is equivalent to the User type minus id, email, name, and imageUrl. I'm not sure if there's a cleaner way to do this with Express and TypeScript.Testing
As of yet this is untested.
Checklist