Made changes to validation

This commit is contained in:
Max Campbell 2022-03-20 14:46:16 -10:00
parent 7b2baad782
commit d407c2f546

View file

@ -19,7 +19,7 @@ const validateAuthPayload = (username: string, password: string): void => {
auth.post(
"/signup",
celebrate({
params: {
body: {
username: Joi.string().required(),
password: Joi.string().required(),
},
@ -57,7 +57,7 @@ auth.post(
auth.post(
"/signin",
celebrate({
params: {
body: {
username: Joi.string().required(),
password: Joi.string().required(),
},