sul-dlss/modsulator-app-rails

View on GitHub
app/controllers/modsulator_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class ModsulatorController < ApplicationController
  def create
    mods_converter = Modsulator.new(File.new(params[:file].tempfile), params[:filename])
    render xml: mods_converter.convert_rows
  end

  def version
    render plain: '2.0.0'
  end
end