2021-09-26 14:51:13 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2021-09-26 14:41:38 -07:00
|
|
|
Rails.application.routes.draw do
|
2026-03-05 11:30:24 -05:00
|
|
|
namespace :id_card do
|
|
|
|
|
resources :rx_sections
|
2026-03-13 08:47:13 -04:00
|
|
|
resources :provider_sections do
|
|
|
|
|
get 'get_section_data', on: :member
|
|
|
|
|
end
|
2026-03-05 11:30:24 -05:00
|
|
|
resources :employer_logos do
|
|
|
|
|
get 'image', on: :member
|
|
|
|
|
end
|
|
|
|
|
resources :network_logos do
|
2026-03-13 08:47:13 -04:00
|
|
|
get 'image', on: :member
|
2026-03-05 11:30:24 -05:00
|
|
|
end
|
2026-03-13 08:47:13 -04:00
|
|
|
resources :printer, only: [:index]
|
2026-03-05 11:30:24 -05:00
|
|
|
resources :print_data do
|
|
|
|
|
collection do
|
|
|
|
|
get 'generate_sample'
|
|
|
|
|
get 'generate_print'
|
|
|
|
|
get 'generate_mobile_display'
|
|
|
|
|
get 'generate_full_page'
|
|
|
|
|
end
|
|
|
|
|
end
|
2026-03-13 08:47:13 -04:00
|
|
|
get 'plans/:id/get_plan_benefits', to: 'plans#get_plan_benefits'
|
2026-01-15 11:37:50 -05:00
|
|
|
end
|
|
|
|
|
# resources :employer_setup
|
|
|
|
|
resources :employers do
|
|
|
|
|
collection do
|
|
|
|
|
post 'import'
|
|
|
|
|
end
|
2026-03-13 08:47:13 -04:00
|
|
|
namespace :id_card do
|
2026-03-16 12:09:45 -04:00
|
|
|
resources :configuration, only: [:destroy] do
|
2026-03-13 08:47:13 -04:00
|
|
|
collection do
|
|
|
|
|
get 'general'
|
|
|
|
|
patch 'update_general'
|
|
|
|
|
get 'plans'
|
|
|
|
|
patch 'update_plans'
|
|
|
|
|
get 'field_exceptions'
|
|
|
|
|
patch 'update_field_exceptions'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
2026-01-15 11:37:50 -05:00
|
|
|
end
|
|
|
|
|
|
2023-09-30 10:32:08 -07:00
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
get "up" => "rails/health#show", as: :rails_health_check
|
2021-09-26 14:41:38 -07:00
|
|
|
|
2023-09-30 10:32:08 -07:00
|
|
|
root "welcome#index"
|
2021-09-26 14:41:38 -07:00
|
|
|
end
|