Class: Spree::Api::V2::ImagesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/v2/images_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/spree/api/v2/images_controller.rb', line 7

def index
  render_collection images.includes(:viewable)
end

#showObject



11
12
13
# File 'app/controllers/spree/api/v2/images_controller.rb', line 11

def show
  render_instance images.find(params[:id])
end