iamdevvalecha / T-Picker-Backend

T-Shirt selling website backend
MIT License
7 stars 6 forks source link

setup validation in routes. #46

Closed iamdevvalecha closed 3 years ago

iamdevvalecha commented 3 years ago

REFERENCE : https://express-validator.github.io/docs/custom-error-messages.html

under routes/auth.js name-> should have minimum length of 1. email -> email is required .isemail() password -> islength(min : 5)