From 5130f549452ead2402a782cbd54667020f196379 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 14 Mar 2023 20:25:53 -0600 Subject: AƱade esqueleto de ProductsController MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/products_controller.rb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'app/controllers/api/products_controller.rb') diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb index cf542d4..0d78151 100644 --- a/app/controllers/api/products_controller.rb +++ b/app/controllers/api/products_controller.rb @@ -2,6 +2,21 @@ module Api # ProductsController - class ProductsController + class ProductsController < MasterController + def show; end + + def index; end + + def create; end + + def update; end + + def destroy; end + + private + + def permitted_params + params.permit(:name, :unitary_price, :bulk_price, :picture, :available_quantity, :categories) + end end end -- cgit v1.2.3