Files
baclight/config/routes.rb
T

64 lines
1.7 KiB
Ruby
Raw Normal View History

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
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
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
end
2026-03-19 00:42:27 -04:00
resources :print, only: [:index] do
collection do
2026-03-19 00:42:27 -04:00
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
2026-03-19 00:42:27 -04:00
# resources :print_data do
# collection do
# get 'generate_sample'
# get 'generate_print'
# get 'generate_mobile_display'
# get 'generate_full_page'
# end
# end
2026-04-17 15:35:10 -04:00
get 'plans/:id/get_plan_template', to: 'plans#get_plan_template'
end
# resources :employer_setup
resources :employers do
collection do
post 'import'
2026-04-15 08:12:47 -04:00
get 'refresh_employer_information'
get 'refresh_employer_members_information'
end
2026-03-13 08:47:13 -04:00
namespace :id_card do
2026-03-20 10:46:53 -04:00
resources :setup, only: [:index, :update, :destroy] do
2026-03-13 08:47:13 -04:00
collection do
get 'plans'
patch 'update_plans'
get 'field_exceptions'
patch 'update_field_exceptions'
2026-04-17 15:35:10 -04:00
get 'update_active_status'
2026-03-13 08:47:13 -04:00
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
2021-09-26 14:41:38 -07:00
root "welcome#index"
2021-09-26 14:41:38 -07:00
end