class Api::ShopsController < Api::ApiController 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').all end def show @shop = Shop.find_by_shop_code(params[:id]) end def get_tax_profiles @inclusive_tax, @exclusive_tax = TaxProfile.calculate_tax("online_order") end end