I am working with express. I want to send the response as the output of an asynchronous function. Something like this:
app.get('/', (req, res) => {
functionResponse = asynchronousFunction();
res.send(functionResponse);
});
How do I achieve this?