Skip to content
Discussion options

You must be logged in to vote

To add a preferences endpoint:
1. In src/server/routes/preferences.js:
javascript<br>router.get('/:userId', (req, res) => {<br> res.json({ success: true, data: { theme: 'dark' } });<br>});<br>
2. Register in src/server/index.js.
3. Test with npm run server and submit a pull request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dailker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants