forgeplus/app/controllers/repertoires_controller.rb

5 lines
158 B
Ruby

class RepertoiresController < ApplicationController
def index
render_ok(repertoires: Repertoire.select(:id, :name).order(:created_at).as_json)
end
end