Categories
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 a Question
731 491 924 answers to any question