You should put this middleware in the `controllers/site.js` file, since it seems like it will be reused.