Updated route to use put