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.
 
 
 
 
 
 

22 lines
686 B

  1. Rails.application.routes.draw do
  2. resources :threads, only: [:index, :show, :create] do
  3. resources :posts, only: [:index, :create], controller: 'thread_posts'
  4. end
  5. resources :posts, only: [:show, :destroy] do
  6. member do
  7. post :good
  8. post :bad
  9. end
  10. end
  11. # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
  12. # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
  13. # Can be used by load balancers and uptime monitors to verify that the app is live.
  14. get "up" => "rails/health#show", as: :rails_health_check
  15. # Defines the root path route ("/")
  16. # root "posts#index"
  17. end