Add middleware.js
Add middleware