Added middleware to store http requests