Files
osem/app/controllers/api/v1/tracks_controller.rb
Nishanth Vijayan 864245fec2 Add specs for api/v1/rooms_controller & api/v1/tracks_controller
and cleanup api/v1/tracks and api/v1/rooms controllers
2016-03-15 00:57:15 +05:30

15 lines
294 B
Ruby

module Api
module V1
class TracksController < Api::BaseController
load_resource :conference, find_by: :short_title
respond_to :json
def index
tracks = @conference ? @conference.program.tracks : Track.all
respond_with tracks
end
end
end
end