-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathroutes.rb
More file actions
31 lines (27 loc) · 1.29 KB
/
routes.rb
File metadata and controls
31 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Rails.application.routes.draw do
resources :languages, only: %i[index show new create edit update]
resources :passwords, param: :token
resources :providers
resources :regions
resource :registration, only: %i[new create]
resource :session
resources :training_resources
resources :users
resources :topics do
put :archive, on: :member
end
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
# 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
get "home/index", as: :home
get "dashboard/index", as: :dashboard
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
# Defines the root path route ("/")
root "home#index"
end