Create middlewares.js