mirror of
https://github.com/openSUSE/osem.git
synced 2026-04-27 10:23:02 -04:00
15 lines
299 B
Ruby
15 lines
299 B
Ruby
module Api
|
|
module V1
|
|
class TracksController < Api::BaseController
|
|
load_resource :conference, find_by: :short_title
|
|
respond_to :json
|
|
|
|
def index
|
|
@conference ? (tracks = @conference.tracks) : (tracks = Track.all)
|
|
|
|
respond_with tracks
|
|
end
|
|
end
|
|
end
|
|
end
|