datacite/volpino

View on GitHub
app/controllers/index_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class IndexController < ApplicationController
  def index
    @show_image = true
    @title = "Home"
  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