use put instead of post for update
update routes structure