38 lines
1.0 KiB
Ruby
38 lines
1.0 KiB
Ruby
# frozen_string_literal: true
|
|
|
|
Rails.application.routes.draw do
|
|
namespace :id_card do
|
|
resources :setup, constraints: { id: /.*/ }
|
|
resources :rx_sections
|
|
resources :provider_sections
|
|
resources :employer_logos do
|
|
get 'image', on: :member
|
|
end
|
|
resources :network_logos do
|
|
get 'image', on: :member, constraints: { id: /.*/ }
|
|
end
|
|
resources :print_data do
|
|
collection do
|
|
get 'generate_sample'
|
|
get 'generate_print'
|
|
get 'generate_mobile_display'
|
|
get 'generate_full_page'
|
|
end
|
|
end
|
|
end
|
|
# resources :employer_setup
|
|
resources :employers do
|
|
collection do
|
|
post 'import'
|
|
end
|
|
end
|
|
|
|
get 'id_card_benefits_templates/get_template_benefits/:id', to: 'id_card_benefits_templates#get_template_benefits'
|
|
|
|
# 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
|