RealDevSquad / RealDevSquad/website-backend
Refactor challenge APIs and add validations
Open
@correaswebert is already working on this.
Since Feb 11, 2021.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
- Current implementation is just taking the whole request body and dumping it into the DB 😢
- We should have separate controllers for each route. It's not ideal to handle the GET, POST routes in one controller. (https://github.com/Real-Dev-Squad/website-backend/blob/develop/controllers/challengeController.js#L13)
- Add data validations for the challenge routes
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.