fixed delete and put routes