logo

Crowdly

Browser

Add to Chrome

Express Дано middleware: export function validate(schema) { return (req, res, ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Express

Дано middleware:

export function validate(schema) {

return (req, res, next) => {

req.body = schema.parse(req.body);

next();

};

}

Що станеться, якщо req.body не пройде валідації?

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome