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

module API
  class GroupAssignmentReposController < API::ApplicationController
    include ActionController::Serialization
    include OrganizationAuthorization

    before_action
    
    def clone_url
      repo = GroupAssignmentRepo.where(
        group_assignment: @group_assignment,
        id: params[:group_assignment_repo_id]
      ).first

      if repo.present?
        render json: {
          temp_clone_url: repo.github_repository.temp_clone_url
        }
      else
        render json: { "error": "not_found" }, status: :not_found
      end