update multi tenancy

This commit is contained in:
Thein Lin Kyaw
2020-01-16 17:04:31 +06:30
parent b5e8bbec43
commit 87ad49a069
7 changed files with 28 additions and 19 deletions

View File

@@ -1,5 +1,4 @@
class Api::AuthenticateController < Api::ApiController
skip_before_action :authenticate
def create
emp_id = params[:emp_id]

View File

@@ -1,5 +1,5 @@
class Api::CustomersController < Api::ApiController
skip_before_action :authenticate
#List all active customers by name
def index
@customers = Customer.order("name asc")

View File

@@ -1,14 +1,11 @@
class Api::MembershipsController < ActionController::API
#before :authenticate_token
#Add Membership to invoice
def create
end
private
def set_sale_params

View File

@@ -4,8 +4,6 @@ class Api::Restaurant::MoveController < Api::ApiController
def update
end
private
# Use callbacks to share common setup or constraints between actions.
def move_params

View File

@@ -1,4 +1,5 @@
class Api::ShopsController < Api::ApiController
skip_before_action :set_current_tenant_by_subdomain_or_first
def index
@shops = Shop.select('id,logo,name,shop_code,address,phone_no').all