Resolve resource queries in router