skip domain filter api shops show action

This commit is contained in:
Thein Lin Kyaw
2020-02-13 16:58:33 +06:30
parent 4b693f165e
commit 31f32a76e6

View File

@@ -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?)