Add show actions for note, artist, artist commentary versions.

Add these endpoints:

* /note_versions/1234
* /artist_versions/1234
* /artist_commentary_versions/1234

This is so the /ip_addresses listing can link to these endpoints.
This commit is contained in:
evazion
2019-11-11 12:52:50 -06:00
parent 9cf5b1f01c
commit 2aac42b112
7 changed files with 65 additions and 30 deletions

View File

@@ -81,7 +81,7 @@ Rails.application.routes.draw do
end
end
resources :artist_urls, only: [:index, :update]
resources :artist_versions, :only => [:index] do
resources :artist_versions, :only => [:index, :show] do
collection do
get :search
end
@@ -180,7 +180,7 @@ Rails.application.routes.draw do
put :revert
end
end
resources :note_versions, :only => [:index]
resources :note_versions, :only => [:index, :show]
resource :note_previews, :only => [:show]
resources :pools do
member do
@@ -243,7 +243,7 @@ Rails.application.routes.draw do
put :revert
end
end
resources :artist_commentary_versions, :only => [:index]
resources :artist_commentary_versions, :only => [:index, :show]
resource :related_tag, :only => [:show, :update]
get "reports/uploads" => "reports#uploads"
get "reports/upload_tags" => "reports#upload_tags"