complete put and delete route