Nerds-Who-Code / Mental-Health-Tracker

mental-health-tracker.vercel.app
MIT License
6 stars 6 forks source link

Implement server side validation #34

Closed steph-koopmanschap closed 1 year ago

steph-koopmanschap commented 2 years ago

When data is received by the server (especially from user inputs) the data needs to be validated before being proccesed.

If data is not valid, then server should send a Bad Request response.

This is to prevent the user from sending incorrect data to the server that could cause errors, crash or overload the server.

Probably should use express-validator for this.