Files
baclight/config/routes.rb
T
2026-03-19 00:42:27 -04:00

63 lines
1.6 KiB
Ruby

# frozen_string_literal: true
Rails.application.routes.draw do
namespace :id_card do
resources :rx_sections
resources :provider_sections do
get 'get_section_data', on: :member
end
resources :employer_logos do
get 'image', on: :member
end
resources :network_logos do
get 'image', on: :member
end
resources :print, only: [:index] do
collection do
get :print_all_queued
end
member do
get :generate_sample
get :generate_print
get :generate_mobile_display
get :generate_full_page
get :print_queued_by_employer
end
end
# resources :print_data do
# collection do
# get 'generate_sample'
# get 'generate_print'
# get 'generate_mobile_display'
# get 'generate_full_page'
# end
# end
get 'plans/:id/get_plan_benefits', to: 'plans#get_plan_benefits'
end
# resources :employer_setup
resources :employers do
collection do
post 'import'
end
namespace :id_card do
resources :configuration, only: [:destroy] do
collection do
get 'general'
patch 'update_general'
get 'plans'
patch 'update_plans'
get 'field_exceptions'
patch 'update_field_exceptions'
end
end
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.
get "up" => "rails/health#show", as: :rails_health_check
root "welcome#index"
end