Added middleware to intercept a GET/POST request to be interpreted as PUT or DELETE