beathaven/app/controllers/api/artists_controller.rb

9 lines
203 B
Ruby
Raw Normal View History

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