You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
926 B

9 months ago
6 months ago
9 months ago
6 months ago
2 months ago
2 months ago
9 months ago
  1. Rails.application.routes.draw do
  2. resources :scores
  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. # Defines the root path route ("/")
  8. root 'scores#index'
  9. get 'flash' => 'flash#index'
  10. get 'flash/redirect_with_notice' => 'flash#redirect_with_notice', as: :flash_redirect_with_notice
  11. get 'flash/redirect_with_alert' => 'flash#redirect_with_alert', as: :flash_redirect_with_alert
  12. get 'flash/redirect_with_both' => 'flash#redirect_with_both', as: :flash_redirect_with_both
  13. get 'flash/from_render' => 'flash#from_render', as: :flash_from_render
  14. post 'flash/from_turbo' => 'flash#from_turbo', as: :flash_from_turbo
  15. end