forgeplus/app/controllers/repertoires_controller.rb

5 lines
158 B
Ruby
Raw Permalink Normal View History

2020-03-09 00:40:16 +08:00
class RepertoiresController < ApplicationController
def index
render_ok(repertoires: Repertoire.select(:id, :name).order(:created_at).as_json)
end
end