Refactor routes and add GET for searches with paging