✨ what it basically does is .. you can have multiple validators for your backend like
if u wanna send those validations in the middleware that you are in u need to write multiple res.json( { } ),
but using this u can pass them to this common validator and it can send the messages accordingly
#nodejs
validateLoginInput
validateRegisterInput
.
.
.
.
.
if u wanna send those validations in the middleware that you are in u need to write multiple res.json( { } ),
but using this u can pass them to this common validator and it can send the messages accordingly
#nodejs