1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/controllers/open_api/v1/trainings_controller.rb

12 lines
261 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# public API controller for resources of type Training
2016-05-04 18:17:50 +02:00
class OpenAPI::V1::TrainingsController < OpenAPI::V1::BaseController
2023-02-24 17:26:55 +01:00
extend OpenAPI::APIDoc
2016-05-05 15:02:02 +02:00
expose_doc
2016-05-04 18:17:50 +02:00
def index
@trainings = Training.order(:created_at)
end
end