diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-14 20:25:53 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-14 20:25:53 -0600 |
commit | 5130f549452ead2402a782cbd54667020f196379 (patch) | |
tree | 2c861cf19c18174e68cd2091509fcc37adeb93cb /app | |
parent | 2dd455d48954d087fc1fa7b2944e87bdaf7c1bab (diff) |
Añade esqueleto de ProductsController
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/products_controller.rb | 17 |
1 files changed, 16 insertions, 1 deletions
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 |