rename middleware.js to index.js