scube-server/app/controllers/api/tracks_controller.rb
2015-05-02 00:24:30 +00:00

20 lines
263 B
Ruby

module API
class TracksController < ApplicationController
before_action :set_track, only: :show
def index
@tracks = Track.all
end
def show
end
private
def set_track
@track = Track.find(params[:id])
end
end
end