Closed steph-koopmanschap closed 1 year 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.
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.