2012-08-26 23:53:30 +00:00
|
|
|
module Api
|
2012-09-09 13:48:24 +00:00
|
|
|
class AlbumsController < BaseController
|
2012-09-18 22:40:46 +00:00
|
|
|
before_filter :validate_request!
|
|
|
|
|
2012-08-26 23:53:30 +00:00
|
|
|
def picture
|
|
|
|
album = Album.find(params[:id])
|
2012-09-18 22:40:46 +00:00
|
|
|
redirect_to album.update_image.sized(:extralarge)
|
2012-08-26 23:53:30 +00:00
|
|
|
end
|
2012-09-01 17:55:01 +00:00
|
|
|
|
|
|
|
def show
|
2012-09-09 13:48:24 +00:00
|
|
|
@album = Album.find(params[:id])
|
|
|
|
return render json: { fail: true } if @album.nil?
|
2012-09-01 17:55:01 +00:00
|
|
|
end
|
2012-09-18 22:40:46 +00:00
|
|
|
|
2012-08-26 23:53:30 +00:00
|
|
|
end
|
|
|
|
end
|