routes.rb 707 B

123456789101112131415
  1. Rails.application.routes.draw do
  2. resources :products
  3. # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
  4. # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
  5. # Can be used by load balancers and uptime monitors to verify that the app is live.
  6. get "up" => "rails/health#show", as: :rails_health_check
  7. # Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
  8. # get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
  9. # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
  10. # Defines the root path route ("/")
  11. # root "posts#index"
  12. end