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: triage_teams_controller.rb
    path of file: ./repos/vets-api/modules/mobile/app/controllers/mobile/v0
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Mobile
  module V0
    class TriageTeamsController < MessagingController
      def index
        resource = client.get_triage_teams(@current_user.uuid, use_cache? || true)
        raise Common::Exceptions::ResourceNotFound if resource.blank?

        resource 
    
      def index
        resource = client.get_triage_teams(@current_user.uuid, use_cache? || true)
        raise Common::Exceptions::ResourceNotFound if resource.blank?

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

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