working mobile deploy
This commit is contained in:
@@ -75,6 +75,13 @@ module Qrammer
|
||||
config.assets.precompile += ['supplier/application.css', 'user/application.css', 'qr_sheet/application.css']
|
||||
config.default_url_options = {format: 'html'}
|
||||
|
||||
#config.middleware.use Rack::Cors do
|
||||
# allow do
|
||||
# origins '*'
|
||||
# resource '/user/*', :headers => '*,auth_token', :methods => '*' #[:get, :post, :options]
|
||||
# end
|
||||
#end
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
end
|
||||
|
||||
@@ -55,10 +55,10 @@ Devise.setup do |config|
|
||||
# It can be set to an array that will enable http authentication only for the
|
||||
# given strategies, for example, `config.http_authenticatable = [:token]` will
|
||||
# enable it only for token authentication.
|
||||
config.http_authenticatable = [:token]
|
||||
# config.http_authenticatable = [:token]
|
||||
|
||||
# If http headers should be returned for AJAX requests. True by default.
|
||||
config.http_authenticatable_on_xhr = true
|
||||
# config.http_authenticatable_on_xhr = true
|
||||
|
||||
# The realm used in Http Basic Authentication. "Application" by default.
|
||||
# config.http_authentication_realm = "Application"
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ Qrammer::Application.routes.draw do
|
||||
get '/user/list_products' => 'user#list_products', as: :user_list_products
|
||||
get '/user/list_products_for_table' => 'user#list_products_for_table', as: :user_list_products_for_table
|
||||
match '/user/list_history' => 'user#list_history', as: :user_list_history
|
||||
match '/user/list_history/:list_id' => 'user#history_list', as: :user_history_list
|
||||
match '/user/history_list' => 'user#history_list', as: :user_history_list
|
||||
post '/user/order_selected_products' => 'user#order_selected_products', as: :user_order_selected_products
|
||||
post '/user/move_table' => 'user#move_table', as: :user_move_table
|
||||
get '/user/table_info' => 'user#table_info', as: :user_table_info
|
||||
|
||||
Reference in New Issue
Block a user