Added a PUT handler that copies the behavior of the POST handler.