You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: all_triage_teams_controller.rb
    path of file: ./repos/vets-api/modules/my_health/app/controllers/my_health/v1
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module MyHealth
  module V1
    class AllTriageTeamsController < SMController
      def index
        resource = client.get_all_triage_tea
    
      def index
        resource = client.get_all_triage_teams(@current_user.uuid, use_cache?)
        raise Common::Exceptions::InternalServerError if resource.blank?

        resource = resource.sort(params.permit(:sort)[:sort])

        # Even though this is a collection action we are not going to paginate
        render json: resource.data,
               serializer: CollectionSerializer,
               each_serializer: AllTriageTeamsSerializer,
               meta: resource.metadata
      end