update /flights post to respond to json