I
I
ivandao2019-12-02 16:38:28
Node.js
ivandao, 2019-12-02 16:38:28

How to arrange the connection of middleware?

Wrote middleware, I attach it like this, but I don't like how it looks.
Can it be prettier?

app.use('/api/data', (req, res, next) => apiAccessControl(req, res, next));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question