Its been a while
This commit is contained in:
@@ -20,6 +20,8 @@ Rails.application.configure do
|
||||
# Enable server timing.
|
||||
config.server_timing = true
|
||||
|
||||
config.hosts << "baclight"
|
||||
|
||||
# Enable/disable caching. By default caching is disabled.
|
||||
# Run rails dev:cache to toggle caching.
|
||||
if Rails.root.join("tmp/caching-dev.txt").exist?
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
# Avoid CORS issues when API is called from the frontend app.
|
||||
# Handle Cross-Origin Resource Sharing (CORS) in order to accept cross-origin Ajax requests.
|
||||
|
||||
# Read more: https://github.com/cyu/rack-cors
|
||||
|
||||
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins "*"
|
||||
|
||||
resource "*",
|
||||
headers: :any,
|
||||
methods: [ :get, :post, :put, :patch, :delete, :options, :head ]
|
||||
end
|
||||
end
|
||||
@@ -70,6 +70,26 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
resources :admins do
|
||||
collection do
|
||||
get 'new_web_user'
|
||||
post 'create_web_employer'
|
||||
post 'create_web_broker'
|
||||
post 'create_web_carrier'
|
||||
end
|
||||
end
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
# resources :web_id_cards, controller: "web_id_cards", only: [] do
|
||||
# get '', action: :member_card, as: :web_member_card
|
||||
# get '', action: :employer_cards, as: :web_employer_cards
|
||||
# end
|
||||
get 'web_id_cards/member_card/:id/:layout', to: 'web_id_cards#member_card'
|
||||
get 'web_id_cards/employer_cards/:id', to: 'web_id_cards#employer_cards'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
|
||||
Reference in New Issue
Block a user