load barcode

This commit is contained in:
benji 2015-10-07 16:42:05 +02:00
parent cf4cb74087
commit 3d9afce424

View file

@ -8,6 +8,7 @@ class BarcodesController < ApplicationController
end
def show
@barcode = Barcode.find_by(code: params[:id])
render json: @barcode.product
end