ticket: 3 Middleware added, middleware test added, template for requests
changed