summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-14 20:22:31 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-14 20:22:31 -0600
commit3751f73edf3c3ba32f7fdb2b3f81b51a0033eefd (patch)
treeb895cac8b719fc0c92031333567c8b204411a4fe /app/controllers/api
parentf1a92818bb0fc65c57c5dc30f06f4870c185ebaa (diff)
Mueve skip_before_action a clase padre
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/companies_controller.rb3
-rw-r--r--app/controllers/api/products_controller.rb7
2 files changed, 7 insertions, 3 deletions
diff --git a/app/controllers/api/companies_controller.rb b/app/controllers/api/companies_controller.rb
index fd72a8a..63d30c8 100644
--- a/app/controllers/api/companies_controller.rb
+++ b/app/controllers/api/companies_controller.rb
@@ -3,9 +3,6 @@
module Api
# CompaniesController
class CompaniesController < MasterController
- skip_before_action :validate_jwt, only: %i[show index]
- skip_before_action :assert_master_role, only: %i[show index]
-
def index
@companies = Company.page(params[:page])
diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb
new file mode 100644
index 0000000..cf542d4
--- /dev/null
+++ b/app/controllers/api/products_controller.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+module Api
+ # ProductsController
+ class ProductsController
+ end
+end