add example of controller and middleware
add example of controller and middleware