post votes: add index page.

This commit is contained in:
evazion
2019-10-28 03:21:18 -05:00
parent 754e3a2ee2
commit f4376fc7a3
9 changed files with 95 additions and 14 deletions

View File

@@ -202,14 +202,15 @@ Rails.application.routes.draw do
end
end
resources :post_replacements, :only => [:index, :new, :create, :update]
resources :posts, :only => [:index, :show, :update] do
resources :post_votes, only: [:index]
resources :posts, only: [:index, :show, :update] do
resources :events, :only => [:index], :controller => "post_events"
resources :replacements, :only => [:index, :new, :create], :controller => "post_replacements"
resource :artist_commentary, :only => [:index, :show] do
collection { put :create_or_update }
member { put :revert }
end
resource :votes, :controller => "post_votes", :only => [:create, :destroy]
resource :votes, controller: "post_votes", only: [:create, :destroy], as: "post_votes"
collection do
get :random
end