Похожие чаты

Router.Post('/Add/', async (req, res) => { validateCustomer(req, res); const customer

= await addCustomer(req.body);
res.status(200).send(customer);
});guys, is there any way to make validateCustomer(req, res) to stop the execution of this anonymous function according to certain condition?
something like return

1 ответов

14 просмотров

if (!validateCustomer(req)) return;

Похожие вопросы

Карта сайта