Fixed the problem with Express middlewares and app.use