LoginSchema.validate(req.body) .then(() => next()) .catch(error => res.status(422).json({ [error.path]: error.message }) ).
確定! 回上一頁