def mount_apis
      require_apis_to_base
      mount_class = "::#{@project_class}::#{@model_class}s::BaseApis"
      file = File.open("#{Dir.pwd}/app/apis/#{@project_name}/base.rb", "r+")
      file.each do |line|
        while line == "\tclass Base < Grape::API\n" do
          pos = file.pos
          rest = file.read
          file.seek pos
          file.write("\t\tmount ") 
          file.puts(mount_class)
          file.write(rest)
          break
        end
      end
      $stdout.puts "\e[1;35m\tmounted\e[0m\t#{mount_class}"
    end
def mount_apis
      require_apis_to_base
      mount_class = "::#{@project_class}::#{@model_class}s::BaseApis"
      file = File.open("#{Dir.pwd}/app/apis/#{@project_name}/base.rb", "r+")
      file.each do |line|
        while line == "\tclass Base < Grape::API\n" do
          pos = file.pos
          rest = file.read
          file.seek pos
          file.write("\t\tmount ") 
          file.puts(mount_class)
          file.write(rest)
          break
        end
      end
      $stdout.puts "\e[1;35m\tmounted\e[0m\t#{mount_class}"
    end
=begin
Mounts the scaffold apis onto the application.
=end