datacite/schnauzer

View on GitHub
app/controllers/index_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class IndexController < ApplicationController
  def index
    render plain: ENV['SITE_TITLE']
  end

  def method_not_allowed
    response.set_header('Allow', 'POST')
    render json: { "message": "This endpoint only supports POST requests." }.to_json, status: :method_not_allowed
  end
end