code: def determine_end_point(http_request, url):
      
      if url.endswith('aggregates') or url.endswith('aggregates/'):
          return 'aggregates'
      else:
          return 'detail' if is_detail_url(http_request, url) else 'list'
docs: returns detail, list or aggregates