finish post route for query
finish post route for query