Files
gitlink-forgeplus/app/controllers/repertoires_controller.rb
2020-03-09 00:40:16 +08:00

5 lines
158 B
Ruby

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