Create RestfulControllerMiddleware