2012-08-27 03:53:30 +04:00
|
|
|
module Api
|
2012-09-09 17:48:24 +04:00
|
|
|
class AlbumsController < BaseController
|
2012-08-27 03:53:30 +04:00
|
|
|
def picture
|
|
|
|
album = Album.find(params[:id])
|
|
|
|
redirect_to album.load_pic
|
|
|
|
end
|
2012-09-01 21:55:01 +04:00
|
|
|
|
|
|
|
def show
|
2012-09-09 17:48:24 +04:00
|
|
|
@album = Album.find(params[:id])
|
|
|
|
return render json: { fail: true } if @album.nil?
|
2012-09-01 21:55:01 +04:00
|
|
|
end
|
2012-08-27 03:53:30 +04:00
|
|
|
end
|
|
|
|
end
|