complete put & delete route