jam-cloud/web/app/controllers/api_favorites_controller.rb

17 lines
518 B
Ruby

class ApiFavoritesController < ApiController
respond_to :json
before_filter :api_signed_in_user
def index
@claimed_recordings, @next = ClaimedRecording.index_favorites(current_user,
start: params[:since],
limit: params[:limit],
sort: params[:sort],
type: params[:type],
user: params[:user])
render "api_favorites/index", :layout => nil
end
end