Adds route configuration for search and pagination.