Add more artist commentary API endpoints.

* GET /posts/1/artist_commentary.json
* GET /artist_commentaries/1.json
This commit is contained in:
evazion
2016-12-21 03:34:45 -06:00
parent 254efd9ca2
commit cc215f6a41
2 changed files with 18 additions and 2 deletions

View File

@@ -193,6 +193,10 @@ Rails.application.routes.draw do
resources :pool_versions, :only => [:index]
resources :posts do
resources :events, :only => [:index], :controller => "post_events"
resource :artist_commentary, :only => [:index, :show] do
collection { put :create_or_update }
member { put :revert }
end
resources :votes, :controller => "post_votes", :only => [:create, :destroy]
collection do
get :home
@@ -216,7 +220,7 @@ Rails.application.routes.draw do
get :search
end
end
resources :artist_commentaries do
resources :artist_commentaries, :only => [:index, :show] do
collection do
put :create_or_update
get :search