ticket:3 Adding Middleware for requests