create the routing middleware
plug it into the stack with Rails