impress/app/controllers/item_appearances_controller.rb

9 lines
207 B
Ruby
Raw Permalink Normal View History

class ItemAppearancesController < ApplicationController
def index
@item = Item.find(params[:item_id])
render json: @item.as_json(
only: [:id], methods: [:appearances, :restricted_zones]
)
end
end