64 lines
1.9 KiB
Ruby
64 lines
1.9 KiB
Ruby
Rails.application.routes.draw do
|
|
mount Rswag::Ui::Engine => "/api-docs"
|
|
mount Rswag::Api::Engine => "/api-docs"
|
|
devise_for :users,
|
|
path: '',
|
|
path_names: {
|
|
sign_in: 'signin',
|
|
sign_out: 'signout',
|
|
registration: 'signup'
|
|
},
|
|
controllers: {
|
|
sessions: 'users/sessions',
|
|
registrations: 'users/registrations'
|
|
}
|
|
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
|
|
|
# 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
|
|
|
|
namespace :api do
|
|
namespace :v1 do
|
|
# post "signup", to: "auth#signup"
|
|
# post "login", to: "auth#login"
|
|
# post "logout", to: "auth#logout"
|
|
# post "refresh", to: "auth#refresh"
|
|
|
|
# get "protected", to: "protected#index"
|
|
# get "profile", to: "profile#show"
|
|
|
|
# admin routes
|
|
get "admin/dashboard", to: "admin#dashboard"
|
|
|
|
get 'id_cards/member_card/:id/:layout', to: 'id_cards#member_card'
|
|
get 'id_cards/member_benefits/:id', to: 'id_cards#member_benefits'
|
|
get 'id_cards/employer_cards/:id', to: 'id_cards#employer_cards'
|
|
|
|
get 'claims/member_claims/:id', to: 'claims#member_claims'
|
|
|
|
get 'network_provider/employer_network_provider/:id', to: 'network_provider#employer_network_provider'
|
|
|
|
resources :members do
|
|
member do
|
|
get 'initialize_dashboard'
|
|
get 'id_card/:layout', to: 'members#id_card'
|
|
get 'claims'
|
|
end
|
|
end
|
|
resources :employers do
|
|
member do
|
|
get 'initialize_dashboard'
|
|
get 'id_cards'
|
|
get 'members_list'
|
|
end
|
|
end
|
|
resources :brokers do
|
|
member do
|
|
get 'employers_list'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|