1
0
Fork 0
beathaven/app/controllers/api/artists_controller.rb

12 lines
242 B
Ruby

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