router: add method to extract url query params