summaryrefslogtreecommitdiff
path: root/app/controllers/api/products_controller.rb
blob: 0d7815127db43174b345f6f5ffa8097c2eb4aa31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# frozen_string_literal: true

module Api
  # 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