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( auth.post(
"/signup", "/signup",
celebrate({ celebrate({
params: { body: {
username: Joi.string().required(), username: Joi.string().required(),
password: Joi.string().required(), password: Joi.string().required(),
}, },
@ -57,7 +57,7 @@ auth.post(
auth.post( auth.post(
"/signin", "/signin",
celebrate({ celebrate({
params: { body: {
username: Joi.string().required(), username: Joi.string().required(),
password: Joi.string().required(), password: Joi.string().required(),
}, },