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-01-15 11:37:50 -05:00
|
|
|
resources :card_rxes
|
|
|
|
|
resources :card_providers
|
|
|
|
|
resources :card_logo_files do
|
|
|
|
|
get 'image', on: :member, constraints: { id: /.*/ }
|
|
|
|
|
end
|
|
|
|
|
# resources :employer_setup
|
|
|
|
|
resources :employers do
|
|
|
|
|
collection do
|
|
|
|
|
post 'import'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
resources :sample_id_cards do
|
|
|
|
|
collection do
|
|
|
|
|
get 'generate_sample'
|
|
|
|
|
get 'generate_print'
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
2025-12-03 11:42:15 -05:00
|
|
|
get 'id_card_benefits_templates/get_template_benefits/:id', to: 'id_card_benefits_templates#get_template_benefits'
|
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
|
|
|
|
2021-12-16 14:33:08 -08:00
|
|
|
resources :articles do
|
|
|
|
|
resources :comments
|
|
|
|
|
end
|
2021-09-26 15:22:36 -07:00
|
|
|
|
2023-09-30 10:32:08 -07:00
|
|
|
root "welcome#index"
|
2021-09-26 14:41:38 -07:00
|
|
|
end
|