1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/app/controllers/open_api/v1/trainings_controller.rb
2023-03-22 10:58:22 +01:00

12 lines
261 B
Ruby

# frozen_string_literal: true
# public API controller for resources of type Training
class OpenAPI::V1::TrainingsController < OpenAPI::V1::BaseController
extend OpenAPI::APIDoc
expose_doc
def index
@trainings = Training.order(:created_at)
end
end