2012-11-07 13:36:00 +00:00
|
|
|
class ApiInstrumentsController < ApiController
|
2012-11-04 03:22:35 +00:00
|
|
|
|
2012-11-07 13:36:00 +00:00
|
|
|
respond_to :json
|
2012-11-04 03:22:35 +00:00
|
|
|
|
|
|
|
|
def index
|
2015-08-01 22:24:41 +00:00
|
|
|
if params[:jamtracks]
|
|
|
|
|
@instruments = Instrument.jam_track_list
|
|
|
|
|
else
|
|
|
|
|
@instruments = Instrument.standard_list
|
|
|
|
|
end
|
2012-11-04 03:22:35 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def show
|
|
|
|
|
@instrument = Instrument.find(params[:id])
|
|
|
|
|
gon.instrument_id = @instrument.id
|
|
|
|
|
gon.description = @instrument.description
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|