From 31f32a76e63de3a5172e351d647cf6f0c0558f5f Mon Sep 17 00:00:00 2001 From: Thein Lin Kyaw Date: Thu, 13 Feb 2020 16:58:33 +0630 Subject: [PATCH] skip domain filter api shops show action --- app/controllers/api/shops_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/shops_controller.rb b/app/controllers/api/shops_controller.rb index 35fe4129..350b30cd 100644 --- a/app/controllers/api/shops_controller.rb +++ b/app/controllers/api/shops_controller.rb @@ -15,7 +15,7 @@ class Api::ShopsController < Api::ApiController end def lookup_domain - if action_name == "index" + if ["index", "show"].include? action_name if ENV["SERVER_CODE"] == "cloud" && request.subdomains.last && request.subdomains.last != "www" @license = cache_license(ENV["SX_PROVISION_URL"], request.host) # request.subdomain.downcase if (!@license.nil?)