Answer the question
In order to leave comments, you need to log in
Middleware in the router?
There is a main application file - app.js.
It includes, for example, middleware:
app.enable('trust proxy');
app.use(helmet());
app.use(compression());
var baseRouter = require('./routes/baseRouter.js');
app.use('/', baseRouter);
Answer the question
In order to leave comments, you need to log in
Yes, it will.
Application
Layer Middleware Router Layer Middleware
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question