finish get and put routes