2024-02-25 12:15:55 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-05 17:40:55 -04:00
|
|
|
class ArtistUrlsController < ApplicationController
|
2021-11-20 16:03:59 -05:00
|
|
|
respond_to :json, :html
|
2018-09-15 12:40:27 -04:00
|
|
|
before_action :member_only, except: [:index]
|
|
|
|
|
|
|
|
def index
|
2023-04-05 12:24:00 -04:00
|
|
|
@artist_urls = ArtistUrl.includes(:artist).search(search_params).paginate(params[:page], limit: params[:limit], search_count: params[:search])
|
2018-09-15 12:40:27 -04:00
|
|
|
respond_with(@artist_urls) do |format|
|
2023-04-05 12:24:00 -04:00
|
|
|
format.json { render json: @artist_urls.to_json(include: :artist) }
|
2018-09-15 12:40:27 -04:00
|
|
|
end
|
|
|
|
end
|
2018-06-05 17:40:55 -04:00
|
|
|
end
|