parse for query string and match to right route with it