add url rule to route queries