Added a route to update a resource.