Made changes to validation
This commit is contained in:
parent
7b2baad782
commit
d407c2f546
1 changed files with 2 additions and 2 deletions
|
@ -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(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue