beathaven/app/controllers/api/artists_controller.rb

9 lines
203 B
Ruby

module Api
class ArtistsController < BaseController
def show
@artist = Artist.with_name(params[:id].gsub("+", " "))
return render json: { fail: true } if @artist.nil?
end
end
end