Wipro interview question

Write a syntax for custom middleware classes?