summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
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