Answer the question
In order to leave comments, you need to log in
How to make the response sent after actions?
I want the response to be sent after all the code is done. Can this be done?
app.post('/', async function(req, res) {
... //код
res.send("ok")
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question