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(
|
||||
"/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(),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue