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

12 lines
242 B
Ruby
Raw Normal View History

2012-08-26 23:53:30 +00:00
module Api
class ArtistsController < BaseController
2012-09-18 22:40:46 +00:00
before_filter :validate_request!
2012-08-26 23:53:30 +00:00
def show
@artist = Artist.with_name(params[:id].gsub("+", " "))
return render json: { fail: true } if @artist.nil?
2012-08-26 23:53:30 +00:00
end
2012-09-18 22:40:46 +00:00
2012-08-26 23:53:30 +00:00
end
end