api controller
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
class Api::ApiController < ActionController::API
|
||||
include TokenVerification, MultiTenancy
|
||||
include TokenVerification
|
||||
include ActionController::MimeResponds
|
||||
|
||||
before_action :core_allow
|
||||
helper_method :current_token, :current_login_employee, :get_cashier
|
||||
|
||||
before_action :core_allow
|
||||
|
||||
def core_allow
|
||||
headers['Access-Control-Allow-Origin'] = '*'
|
||||
headers['Access-Control-Allow-Methods'] = 'POST, PUT, DELETE, GET, OPTIONS'
|
||||
|
||||
Reference in New Issue
Block a user