beathaven/app/controllers/api/artists_controller.rb
2012-09-19 02:40:46 +04:00

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