class Support::TitlesController < Support::ApplicationController
  skip_before_action :require_permissions!

  def index
    render_success :ok, json: Title.all.map { |t| title_props(t) }
  end

  private
    def title_props(title)
      {
        id: title.id,
        name: title.name
      }
    end
end
