📅  最后修改于: 2022-03-11 14:55:21.803000             🧑  作者: Mango
app.post('/create-user', [
// normalizeEmail() and toDate() are sanitizers, also available in the Sanitization Chain
check('email').normalizeEmail().isEmail(),
check('date-of-birth').isISO8601().toDate(),
]);