fix route to support GET/POST request
update to support query