load barcode
This commit is contained in:
parent
cf4cb74087
commit
3d9afce424
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ class BarcodesController < ApplicationController
|
|||
end
|
||||
|
||||
def show
|
||||
@barcode = Barcode.find_by(code: params[:id])
|
||||
render json: @barcode.product
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue