sanger/sequencescape

View on GitHub
lib/generators/api_v2/templates/app/controllers/api/v2/%underscores%_controller.rb.tt

Summary

Maintainability
Test Coverage
# frozen_string_literal: true

module Api
  module V2
    # Provides a JSON API controller for <%= name %>
    # See: http://jsonapi-resources.com/ for JSONAPI::Resource documentation
    class <%= camelcases %>Controller < JSONAPI::ResourceController
      # By default JSONAPI::ResourceController provides most the standard
      # behaviour, and in many cases this file may be left empty.
    end
  end
end