Add a middleware to handle overriding the http method