From 656168c3dffeeae431ab2667d21b4a0d5eeeb9dd Mon Sep 17 00:00:00 2001 From: Thein Lin Kyaw Date: Thu, 13 Feb 2020 17:02:05 +0630 Subject: [PATCH] skip authenticate api shops show --- app/controllers/api/shops_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/shops_controller.rb b/app/controllers/api/shops_controller.rb index 350b30cd..7c264f83 100644 --- a/app/controllers/api/shops_controller.rb +++ b/app/controllers/api/shops_controller.rb @@ -1,6 +1,6 @@ class Api::ShopsController < Api::ApiController - skip_before_action :authenticate, only: [:index] - skip_before_action :set_current_tenant_by_subdomain_or_name, only: [:index] + skip_before_action :authenticate, only: [:index, :show] + skip_before_action :set_current_tenant_by_subdomain_or_name, only: [:index, :show] def index @shops = Shop.select('id, logo, name, shop_code').where.not(cloud_url: nil).all