Its been a while

This commit is contained in:
Jason Jordan
2026-07-23 10:32:51 -04:00
parent 5a90ea6e14
commit 56009fa158
70 changed files with 686 additions and 147 deletions
+2
View File
@@ -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?
+16
View File
@@ -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
+20
View File
@@ -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.