app/controllers/spree/api/images_controller.rb in spree_api-2.3.13 vs app/controllers/spree/api/images_controller.rb in spree_api-2.4.0.rc1
- old
+ new
@@ -1,8 +1,13 @@
module Spree
module Api
class ImagesController < Spree::Api::BaseController
+ def index
+ @images = scope.images.accessible_by(current_ability, :read)
+ respond_with(@images)
+ end
+
def show
@image = Image.accessible_by(current_ability, :read).find(params[:id])
respond_with(@image)
end